GraphTheory
AddVertex
add vertex to graph
Calling Sequence
Parameters
Description
Examples
AddVertex(G, V)
G
-
graph
V
vertex or list of vertices
The AddVertex command adds a vertex or vertices to a graph. A new graph is returned which contains the specified set of vertices in addition to the vertices in the original graph G.
Error, (in GraphTheory:-AddVertex) some of the vertices to be added are already present in the graph
See Also
AddArc
AddEdge
CycleGraph
DeleteVertex
Graph
Download Help Document