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[GraphUnion]
Calling Sequence
GraphUnion(G1,...,Gs)
Parameters
G1,...,Gs
-
graphs
Description
The GraphUnion(G1,G2) function returns a graph G with Vertices(G) = Vertices(G1) union Vertices(G2) and Edges(G) = Edges(G1) union Edges(G2). Moreover, if G1 and G2 are both weighted graphs, the resulting graph is a weighted graph where the weight of any common edge is the sum of the weights of that edge in G1 and G2.
Note that G1 and G2 must both be directed, or both be undirected, and then the resulting graph is directed or undirected, respectively. Likewise, G1 and G2 must both be weighted, or both unweighted, and the resulting graph is then weighted or unweighted, respectively.
Examples
In this example, note that the vertices of G1 and G2 are permuted differently.
In this example, note that there is one common vertex between the two graphs
See Also
CartesianProduct, DisjointUnion, GraphJoin
Download Help Document