edges(g) --- list the edges in g as a 2-column matrix
0001 function elist = edges(g) 0002 % edges(g) --- list the edges in g as a 2-column matrix 0003 0004 global GRAPH_MAGIC 0005 [i,j] = find(triu(GRAPH_MAGIC.graphs{g.idx}.array)); 0006 0007 elist = [i,j];