My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
adjacencyMatrix  
Updated Feb 11, 2010 by mattbdun...@gmail.com

An adjacency matrix is a binary matrix A, such that A(i, j) = 1 if there is an edge from node i to node j, and 0 otherwise.

Here is an example:

adj =
     0     0     1     0     0
     0     0     1     1     1
     1     1     0     1     1
     1     1     1     0     1
     0     0     0     1     0


Sign in to add a comment
Powered by Google Project Hosting