networks(deprecated)/adjacency - Help

Online Help

All Products    Maple    MapleSim


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

networks[adjacency] - construct the adjacency matrix of a graph

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:

G:=cycle4:

adjacencyG

0101101001011010

(1)

G:=complete4:

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


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam