|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
VertexIndex
VertexIndex[g, v]
gives the integer index for the vertex v in the graph g.
DetailsDetails
- VertexIndex gives the ordering used in functions such as VertexList, AdjacencyMatrix, KirchhoffMatrix, IncidenceMatrix, and GraphDistanceMatrix.
- VertexIndex[g, v] gives the position for a vertex v in VertexList[g].
- VertexIndex[g, v] gives the row position for a vertex v in IncidenceMatrix[g].
- VertexIndex[g, v] gives the row and column position for a vertex v in AdjacencyMatrix[g], KirchhoffMatrix[g], and GraphDistanceMatrix[g].
New in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »

