Qurak

VertexContract

Disponible

Merge a set of vertices of a graph into a single vertex

VertexContract[g, {v1, v2, …}]
VertexContract[g, {{v1, v2, …}, …}]
VertexContract[{v -> w, …}, …]
g = CycleGraph[5]; VertexContract[g, {1, 2}] → Graph[<4>, <4>]

Temas

Relacionadas

Las 6300 funciones · Usar esto desde un cliente MCP