TOPICS
Search

Graph Union


GraphUnion

The graph union G=G_1 union G_2 of graphs G_1 and G_2 with vertex sets V_1 and V_2 and edge sets X_1 and X_2 is the graph with V=V_1 union V_2 and X=X_1 union X_2 (Skiena 1990, pp. 129-131). Vertices having the same labels are identified, and edges common to both edge sets are not duplicated. When V_1 and V_2 are disjoint, the graph union coincides with the graph disjoint union.

The Wolfram Language function GraphUnion[g1, g2] computes the graph union by merging vertices and edges with shared labels.


See also

Graph Disjoint Union, Graph Intersection, Graph Join, Graph Sum

Explore with Wolfram|Alpha

References

Skiena, S. "Unions and Intersections." §4.1.1 in Implementing Discrete Mathematics: Combinatorics and Graph Theory with Mathematica. Reading, MA: Addison-Wesley, pp. 129-131, 1990.

Referenced on Wolfram|Alpha

Graph Union

Cite this as:

Weisstein, Eric W. "Graph Union." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/GraphUnion.html

Subject classifications