grapher.select_path_induced_subgraph()

Return the induced subgraph over nodes lying on directed source->target paths.

Usage

Source

grapher.select_path_induced_subgraph(
    graph,
    *,
    source_keys,
    target_keys,
    max_path_length=None,
    max_paths=None,
    include_endpoints=True
)

Edge direction follows DependencyGraph semantics: A -> B means A depends on B.