Maple Student Edition
Maple Personal Edition
Maple Player for iPad
Maple T.A. MAA Placement Test Suite
Maple T.A. Connector for Blackboard Software
Möbius Project Home Page
View Math Apps
Machine Design / Industrial Automation
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Other Application Areas
High Schools & Two-Year Colleges
Testing & Assessment
High Performance Computing
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
networks[addvertex] - add a vertex or set of vertices to a graph
addvertex(v1, v2, G)
addvertex(v1, weights=w, G)
addvertex([v1, v2], weights=[w1, w2], G)
graph or network
v1, v2, ..., vn
new vertices for the graph G
user supplied weight for a vertex (default 0)
Important: The networks package has been deprecated. Use the superseding command GraphTheory[AddVertex] instead.
This routine adds one or more vertices to a graph. The vertex names used are returned as an expression sequence.
To force addvertex() to use a specific weight for a single vertex use the optional argument (eg. weights=3).
If more than one vertex is to be added, they can be presented as a list or set of vertices. In this case, non-default weights must also be specified as a list of weights as in: addvertex([1, 3], weights=[0, 0], G)
A vertex cannot be a symbol or string beginning with the letter e; these are reserved, by the package, for edge names.
This routine is normally loaded via the command with(networks) but can also be referenced using the full name networks[addvertex](...).
GraphTheory, GraphTheory[AddVertex], networks(deprecated)[addedge], networks(deprecated)[vertices], with
Download Help Document