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

networks

  

vdegree

  

finds vertex degrees in a graph

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

vdegree(vname, G)

Parameters

G

-

graph or network

vname

-

vertex

Description

• 

Important: The networks package has been deprecated.Use the superseding package GraphTheory instead.

• 

Given a vertex v the degree of v in G is returned.

• 

Undirected and directed edges may both exist, but vdegree uses only the undirected edges. Use indegree() or outdegree() to determine the other kinds of degrees.

• 

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

Examples

Important: The networks package has been deprecated.Use the superseding package GraphTheory 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

networks(deprecated)[indegree]

networks(deprecated)[maxdegree]

networks(deprecated)[mindegree]

networks(deprecated)[outdegree]

networks(deprecated)[vertices]

networks(deprecated)[vweight]

with