NetworkX

Previous topic

symmetric_difference

Next topic

union_all

compose_all

compose_all(graphs, name=None)[source]

Return a new graph, the composition of supplied graphs

Composition is the simple union of the node sets and edge sets. The node sets of the supplied graphs need not be disjoint.

Parameters :

graphs : list of graphs

Multiple NetworkX graphs

name : string

Specify name for new graph

Returns :

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

Notes

A new graph is returned, of the same class as the first graph in the list. It is recommended that the supplied graphs be either all directed or all undirected. If a graph attribute is present in multiple graphs, then the first graph in the graphs_list with that attribute takes priority for that attribute