Close
Close window
CopyGraph - 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

CopyGraph

copy graph

Calling Sequence

CopyGraph(G)

Parameters

G

-

graph

Description

CopyGraph(G) creates a copy of the graph G.

Examples

>

withGraphTheory:

>

GCycleGraph5

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

(1)
>

HCopyGraphG

HGraph 2: an undirected graph with 5 vertices and 5 edges

(2)
>

AddEdgeH,1,3,1,4

Graph 2: an undirected graph with 5 vertices and 7 edges

(3)
>

EdgesG

1,2,1,5,2,3,3,4,4,5

(4)
>

EdgesH

1,2,1,3,1,4,1,5,2,3,3,4,4,5

(5)
>

SetVertexAttributeH,2,tag=vertex

(6)
>

GetVertexAttributeH,2,tag

vertex

(7)
>

GetVertexAttributeG,2,tag

FAIL

(8)


Download Help Document

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