NetworkX

Previous topic

disjoint_union_all

Next topic

cartesian_product

intersection_all

intersection_all(graphs)[source]

Return a new graph that contains only the edges that exist in all graphs.

All supplied graphs must have the same node set.

Parameters :

graphs_list : list

List of NetworkX graphs

Returns :

R : A new graph with the same type as the first graph in list

Notes

Attributes from the graph, nodes, and edges are not copied to the new graph.