Combinatorica Package >

AddVertices

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 {{x_1,y_1},{x_2,y_2} …} or the form {{{x_1,y_1},g_1},{{x_2,y_2},g_2},…}, where {x,y}, {x_1,y_1}, and {x_2,y_2} are point coordinates and g_1 and g_2 are graphics information associated with vertices.
© 2008 Wolfram Research, Inc. japanese.gif
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team