networks(deprecated)/complement - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : networks(deprecated)/complement

networks

  

complement

  

find the complement of a graph

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

complement(G)

complement(G, H)

Parameters

G

-

graph to be complemented

H

-

complement of G taken with respect to H

Description

• 

Important: The networks package has been deprecated.  Use the superseding command GraphTheory[GraphComplement] instead.

• 

The complement of a graph is computed and returned as a new graph.  If one argument is used, then the complement is relative to the complete graph on the same number of vertices.  If a second argument is given then the complement is relative to the given graph.

• 

This routine is normally loaded via the command with(networks) but can also be referenced using the full name networks[complement](...).

Examples

Important: The networks package has been deprecated.  Use the superseding command GraphTheory[GraphComplement] instead.

withnetworks:

Gcycle5:

HcomplementG:

endsH

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

(1)

Kcomplete5:

deleteedges1,3,K,K:

KccomplementG,K:

endsKc

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

(2)

See Also

GraphTheory

GraphTheory[GraphComplement]

networks(deprecated)[complete]

networks(deprecated)[cycle]

with