networkx.algorithms.operators.all.intersection_all¶
-
intersection_all
(graphs)[source]¶ Returns 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 of NetworkX graphs Returns: R Return type: A new graph with the same type as the first graph in list Raises: ValueError
– Ifgraphs
is an empty list.Notes
Attributes from the graph, nodes, and edges are not copied to the new graph.