AddVertices

As of Version 10, most of the functionality of the Combinatorica package is built into the Wolfram System. >>

AddVertices[g,n]
adds n disconnected vertices to graph g.

AddVertices[g,vList]
adds vertices in vList to g. vList contains embedding and graphics information and can have the form {x,y} or {{x1,y1},{x2,y2}} or the form {{{x1,y1},g1},{{x2,y2},g2},}, where {x,y}, {x1,y1}, and {x2,y2} are point coordinates and g1 and g2 are graphics information associated with vertices.

DetailsDetails

Translate this page: