Qurak

VertexAdd

Disponible

Add vertices to a graph

VertexAdd[g, v]
VertexAdd[g, {v1, v2, …}]
VertexAdd[{v -> w, …}, …]
g = PathGraph[Range[20]]; VertexAdd[g, Range[21, 30]] → Graph[<30>, <19>]

Thèmes

Connexes

Les 6300 fonctions · Utiliser ceci depuis un client MCP