|
SOLUTIONS
|
Mathematica
>
Mathematics and Algorithms
>
Graphs & Networks
>
Constructing Graphs
>
Graphs and Matrices
>
AdjacencyGraph
BUILT-IN MATHEMATICA SYMBOL
AdjacencyGraph
AdjacencyGraph[amat]
gives the graph with adjacency matrix amat.
AdjacencyGraph[{v1, v2, ...}, amat]
gives the graph with vertices
and adjacency matrix amat.
Details and OptionsDetails and Options
- AdjacencyGraph[amat] is equivalent to AdjacencyGraph[{1, 2, ..., n}, amat], where amat has dimensions
×
. - AdjacencyGraph 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 AdjacencyGraph:
-
Automatic undirected graph if amat 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 »


