NetworkX

Previous topic

networkx.subgraph

Next topic

networkx.compose

networkx.cartesian_product

cartesian_product(G, H, create_using=None)

Return the Cartesian product of G and H.

Parameters:

G,H : graph

A NetworkX graph

Notes

Only tested with Graph class.