Induction and Expansion
Functions for building graphs that use both expansion and induction procedures.
- pybel.struct.mutation.induction_expansion.get_multi_causal_upstream(graph, nbunch)
Get the union of all the 2-level deep causal upstream subgraphs from the nbunch.
- pybel.struct.mutation.induction_expansion.get_multi_causal_downstream(graph, nbunch)
Get the union of all of the 2-level deep causal downstream subgraphs from the nbunch.
- pybel.struct.mutation.induction_expansion.get_subgraph_by_second_neighbors(graph, nodes, filter_pathologies=False)
Get a graph around the neighborhoods of the given nodes and expand to the neighborhood of those nodes.
Returns none if none of the nodes are in the graph.