Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
GraphTheory[AddArc]
Calling Sequence
AddArc(G, E)
AddArc(G, E, ip)
Parameters
G
-
directed graph
E
arc, trail or set of arcs
ip
equation of the form inplace=true or false (optional)
Description
The AddArc command adds one or more arcs to a directed graph. By default, the original digraph is changed to a digraph containing the specified set of arc(s). By setting inplace=false, the original digraph remains unchanged and a new digraph containing the specified set of arcs is created.
If the graph is weighted, then a weighted arc can be added by calling AddArc with one or more arcs in the form , where the arc is just the from/to vertex pair, and the weight represents the value of the arc weight.
Examples
See Also
AddEdge, DeleteArc, Digraph, Edges, HasArc, Trail
Download Help Document