networks
indegree
finds vertex indegrees in a graph
Calling Sequence
Parameters
Description
Examples
indegree(v, G)
indegree(vset, G)
G
-
graph or network
v
vertex
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](...).
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
GraphTheory[InDegree]
networks(deprecated)[head]
networks(deprecated)[tail]
networks(deprecated)[vertices]
networks(deprecated)[vweight]
with
Download Help Document