Edge weight matrix of a graph

A symmetric matrix is a way to describe a weighted, undirected graph: each edge in the graph is assigned a weight W_{ij}. Since the graph is undirected, the edge weight is independent of the direction (from i to j or vice-versa). Hence, W is symmetric.

alt text To the graph in the figure, we can associate the corresponding undirected graph, obtained by ignoring the direction of the arrows. Assuming that all the edges have the same weight, the undirected graph has the edge weight matrix given by

W=\left[\begin{array}{cccccccc} 1 & 1 & 0 & 0 & 0 & 0 & 0 & -1 \\ -1 & 0 & 1 & 0 & 0 & 0 & 0 & 1 \\ 0 & -1 & -1 & -1 & 1 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 & 0 & 0 & -1 & 0 \\ 0 & 0 & 0 & 0 & 0 & -1 & 1 & 0 \\ 0 & 0 & 0 & 0 & -1 & 0 & 0 & 0 \end{array}\right]

See also:

License

Hyper-Textbook: Optimization Models and Applications Copyright © by L. El Ghaoui. All Rights Reserved.

Share This Book