Qurak

VertexContract

Disponibile

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

Argomenti

Correlate

Tutte le 6300 funzioni · Usa questo da un client MCP