 matrix called A.  The entry A(i,j) = 1 for any edge between in <img src="demo_eq85525.png" alt="$E$"> and 0 otherwise.  Let's look at an example.
         </p><pre class="codeinput">load_gaimc_graph(<span class="string">'bfs_example'</span>);
graph_draw(A,xy,<span class="string">'labels'</span>,labels)
full(A)
labels'
</pre><pre class="codeoutput">
ans =

     0     1     0     0     1     0     0     0
     1     0     0     0     0     1     0     0
     0     0     0     1     0     1     1     0
     0