WLJS LogoWLJS Notebook

GraphProduct

GraphProduct[g1, g2] gives the Cartesian product of the graphs g1 and g2.

  • GraphProduct[g1, g2, "op"] gives the product of type "op" for the graphs g1 and g2.

Examples

GraphProduct[PathGraph[{1, 2, 3}], PathGraph[{a, b}]]
GraphProduct[CycleGraph[4], CycleGraph[4], "Tensor"]

Please visit the official Wolfram Language Reference for more details.

On this page