networks(deprecated)/adjacency - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


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

networks

  

adjacency

  

construct the adjacency matrix of a graph

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

adjacency(G)

Parameters

G

-

graph or network

Description

• 

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

• 

Two vertices are said to be adjacent if one or more edges connect them.  This routine constructs an adjacency matrix whose rows and columns are indexed by the vertices and whose i-jth entry is the number of edges from vertex i to vertex j.

• 

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

Examples

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

withnetworks:

Gcycle4:

adjacencyG

0101101001011010

(1)

Gcomplete4:

adjacencyG

0111101111011110

(2)

addedge2,3,G

e7

(3)

adjacencyG

0111102112011110

(4)

addedge1,2,G

e8

(5)

adjacencyG

0211102112011110

(6)

See Also

GraphTheory

GraphTheory[AdjacencyMatrix]

networks(deprecated)[complete]

networks(deprecated)[incidence]

with