Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

networkx.algorithms.operators.all.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 of NetworkX graphs
Returns:R
Return type:A new graph with the same type as the first graph in list
Raises:ValueError – If graphs is an empty list.

Notes

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