Close
Close window
GraphJoin - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

GraphTheory

GraphJoin

construct join of graphs

Calling Sequence

GraphJoin(G, H)

Parameters

G, H

-

graphs

Description

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.

Examples

>

withGraphTheory:

>

GGraphJoinPathGraph2,Graph3

GGraph 1: an undirected graph with 5 vertices and 7 edges

(1)
>

VerticesG

1:1,1:2,2:1,2:2,2:3

(2)
>

EdgesG

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

(3)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /