Return the union of graphs G and H.
Graphs G and H must be disjoint, otherwise an exception is raised.
Parameters : | G,H : graph
create_using : NetworkX graph
rename : bool (default=False)
name : string
|
---|
See also
Notes
To force a disjoint union with node relabeling, use disjoint_union(G,H) or convert_node_labels_to integers().
Graph, edge, and node attributes are propagated from G and H to the union graph. If a graph attribute is present in both G and H the value from G is used.