GraphTheory
GraphJoin
construct join of graphs
Calling Sequence
Parameters
Description
Examples
GraphJoin(G, H)
G, H
-
graphs
The GraphJoin(G,H) function returns the graph which is obtained by connecting all the vertices of G to all vertices of H. The vertex labels in the resulting graph are strings of the form "1:u" and "2:v" where u is a vertex in G and v is a vertex in H.
with⁡GraphTheory:
G≔GraphJoin⁡PathGraph⁡2,Graph⁡3
G≔Graph 1: an undirected graph with 5 vertices and 7 edge(s)
Vertices⁡G
1:1,1:2,2:1,2:2,2:3
Edges⁡G
1:1,1:2,1:1,2:1,1:1,2:2,1:1,2:3,1:2,2:1,1:2,2:2,1:2,2:3
See Also
CartesianProduct
DisjointUnion
GraphUnion
Download Help Document