networks
vdegree
finds vertex degrees in a graph
Calling Sequence
Parameters
Description
Examples
vdegree(vname, G)
G
-
graph or network
vname
vertex
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](...).
with⁡networks:
new⁡G:
addvertex⁡1,2,3,4,G:
addedge⁡1,2,1,2,1,2,1,3,4,1,G:
vdegree⁡1,G
2
indegree⁡1,G
1
outdegree⁡1,G
See Also
GraphTheory
networks(deprecated)[indegree]
networks(deprecated)[maxdegree]
networks(deprecated)[mindegree]
networks(deprecated)[outdegree]
networks(deprecated)[vertices]
networks(deprecated)[vweight]
with
Download Help Document