WLJS LogoWLJS Notebook

GraphPower

GraphPower[g, n] gives the graph n-th power of the graph g.

  • GraphPower[{v -> w, …}, …] uses rules v -> w to specify the graph g.

Examples

GraphPower[CycleGraph[10], 2]
GraphPower[PathGraph[Range[6]], 3]

Please visit the official Wolfram Language Reference for more details.

On this page