Skip to content
Advertisement

Tag: graph-theory

Combine (join) networkx Graphs

Say I have two networkx graphs, G and H: What is the best way to join the two networkx graphs? I’d like to preserve the node names (note the common nodes, 2 to 7). When I used nx.disjoint_union(G,H), this did not happen: The H node labels were changed (not what I want). I want to join the graphs at the

Advertisement