Home > matgraph > @graph > edges.m

edges

PURPOSE ^

edges(g) --- list the edges in g as a 2-column matrix

SYNOPSIS ^

function elist = edges(g)

DESCRIPTION ^

 edges(g) --- list the edges in g as a 2-column matrix

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

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];

Generated on Fri 05-Feb-2010 13:55:18 by m2html © 2003