Qurak

GraphPower

Verfügbar

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>]]}

Themen

Verwandt

Alle 6300 Funktionen · Dies aus einem MCP-Client verwenden