GraphTheory - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Mathematics : Discrete Mathematics : Graph Theory : GraphTheory Package : GraphTheory/GraphComplement

GraphTheory

  

GraphComplement

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

GraphComplement(G)

Parameters

G

-

graph

Description

• 

GraphComplement returns the complement of a graph G, that is the graph with the same vertex set as G, but whose edge (arc) set consists of the edges (arcs) not present in G.

Examples

withGraphTheory:

CCycleGraph5

CGraph 1: an undirected unweighted graph with 5 vertices and 5 edge(s)

(1)

GGraphComplementC

GGraph 2: an undirected unweighted graph with 5 vertices and 5 edge(s)

(2)

EdgesC

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

(3)

EdgesG

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

(4)

DrawGraphC

DrawGraphG

See Also

CycleGraph

Edges