NetworkX

Previous topic

union_all

Next topic

intersection_all

disjoint_union_all

disjoint_union_all(graphs)[source]

Return the disjoint union of graphs, forcing distinct integer node labels.

Parameters :

graphs : list

Multiple NetworkX graph

Returns :

U : A union of graph with the same type as the first graph.

Notes

A new graph is created, of the same class as the first graph. It is recommended that the graphs be either all directed or all undirected.