WeightedAdjacencyGraph

WeightedAdjacencyGraph[wmat]

gives the graph with weighted adjacency matrix wmat.

WeightedAdjacencyGraph[{v1,v2,},wmat]

gives the graph with vertices vi and weighted adjacency matrix wmat.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Construct a graph from a weighted adjacency matrix:

In[1]:=
Click for copyable input
Out[1]=

A symmetric weighted adjacency matrix results in an undirected graph:

In[1]:=
Click for copyable input
Out[1]=

Scope  (7)

Options  (82)

Properties & Relations  (4)

See Also

WeightedAdjacencyMatrix  WeightedGraphQ  EdgeWeight  VertexWeight  AdjacencyGraph  IncidenceGraph  KirchhoffGraph

Introduced in 2010
(8.0)