networks
maxdegree
finds maximum vertex degree in a graph
Calling Sequence
Parameters
Description
Examples
maxdegree(G)
maxdegree(G, vname)
G
-
graph or network
vname
vertex of maximum degree (returned)
Important:The networks package has been deprecated. Use the superseding command GraphTheory[MaximumDegree]instead.
The total number of edges (undirected, including loops) incident at each vertex is computed, and the maximum returned.
If vname is specified, a vertex of max degree is returned as vname.
This routine is normally loaded via the command with(networks) but may also be referenced using the full name networks[maxdegree](...).
with⁡networks:
G≔complete⁡4:
addedge⁡1,1,2,3,4,G
e7,e8,e9,e10,e11
maxdegree⁡G,large
5
large
1
mindegree⁡G,small
4
small
2
See Also
GraphTheory
GraphTheory[MaximumDegree]
networks(deprecated)[head]
networks(deprecated)[indegree]
networks(deprecated)[mindegree]
networks(deprecated)[outdegree]
networks(deprecated)[tail]
networks(deprecated)[vertices]
networks(deprecated)[vweight]
with
Download Help Document