Qurak

GraphPower

Available

Graph connecting vertices within a given distance

GraphPower[g, n]
GraphPower[{v -> w, …}, …]
g = CycleGraph[7]; m = AdjacencyMatrix[g]; {GraphPower[g, 3], SimpleGraph[AdjacencyGraph[Clip[m + m.m + m.m.m]]]} → {Graph[<7>, <21>], SimpleGraph[Graph[<7>, <21>]]}

Topics

Related

All 6300 functions · Use this from an MCP client