networks(deprecated)/indegree - 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)/indegree

networks

  

indegree

  

finds vertex indegrees in a graph

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

indegree(v, G)

indegree(vset, G)

Parameters

G

-

graph or network

v

-

vertex

Description

• 

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

• 

This routine computes the in-degree of a single vertex.

• 

Both undirected and directed edges can coexist but indegree considers only genuine directed edges in computing this value. See vdegree() for the ``total degree'' of the vertex.

• 

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

Examples

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

withnetworks:

newG:

addvertex1,2,3,4,G:

addedge1,2,1,2,1,2,1,3,4,1,G:

vdegree1,G

2

(1)

indegree1,G

1

(2)

outdegree1,G

2

(3)

See Also

GraphTheory

GraphTheory[InDegree]

networks(deprecated)[head]

networks(deprecated)[tail]

networks(deprecated)[vertices]

networks(deprecated)[vweight]

with