|
SOLUTIONS
|
Mathematica
>
Mathematics and Algorithms
>
Graphs & Networks
>
Constructing Graphs
>
Graphs and Matrices
>
KirchhoffMatrix
BUILT-IN MATHEMATICA SYMBOL
KirchhoffMatrix
KirchhoffMatrix[g]
gives the Kirchhoff matrix of the graph g.
DetailsDetails
- KirchhoffMatrix returns a SparseArray object, which can be converted to an ordinary matrix using Normal.
- The diagonal entries
equal the degree of
. - An entry
is
if vertex
is adjacent to
. - The vertices
are assumed to be in the order given by VertexList[g]. - The Kirchhoff matrix for a graph will have dimensions
×
where
is the number of vertices.
New in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »


