|
SOLUTIONS
|
Mathematica
>
Mathematics and Algorithms
>
Graphs & Networks
>
Constructing Graphs
>
Graphs and Matrices
>
WeightedAdjacencyGraph
BUILT-IN MATHEMATICA SYMBOL
WeightedAdjacencyGraph
WeightedAdjacencyGraph[wmat]
gives the graph with weighted adjacency matrix wmat.
WeightedAdjacencyGraph[{v1, v2, ...}, wmat]
gives the graph with vertices
and weighted adjacency matrix wmat.
Details and OptionsDetails and Options
- WeightedAdjacencyGraph[wmat] is equivalent to WeightedAdjacencyGraph[{1, 2, ..., n}, wmat], where wmat has dimensions
×
. - WeightedAdjacencyGraph takes the same options as Graph.
- The option DirectedEdges can be used to control whether an undirected or directed graph is constructed.
- The following settings for DirectedEdges can be used in WeightedAdjacencyGraph:
-
Automatic undirected graph if wmat is symmetric True construct a directed graph False construct an undirected graph
New in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »


