|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
VertexDegree
VertexDegree[g]
gives the list of vertex degrees for all vertices in the graph g.
VertexDegree[g, v]
gives the vertex degree for the vertex v.
ExamplesExamplesopen allclose all
Basic Examples (3)Basic Examples (3)
Find the degree for each vertex:
| In[1]:= |
| Out[1]= |
Find the degree for a specified vertex:
| In[1]:= |
| Out[1]= |
Vertex degrees of the HararyGraph:
| In[1]:= |
| Out[1]= | ![]() |
| In[2]:= |
| Out[2]= |
New in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »



