Graph Search: Adjacency Matrix

Date: 2013-11-25 |

For each coordinate in the matrix, place a 1 if the nodes are connected and a 0 if they aren’t.  In the case of a weighted graph, replace the one with the respective weight.

Adjacency Matrix

Node1 2 34 5 6
11 1 0 0 1 0
21 0 1 0 1 0
301 0 1 0 0
400 1 0 1 1
511 0 1 0 0
600 0 1 0 0

Want more like this?

The best / easiest way to support my work is by subscribing for future updates and sharing with your network.