[jgrapht-users] List all edges
Brought to you by:
barak_naveh,
perfecthash
From: Federico F. <fed...@gm...> - 2011-01-10 11:05:28
|
Hi all, suppose that I have a graph g2, and I get the set of all edges, e.g.: Set es = g2.edgeSet(); I tried to print the edges, via the routine: Iterator itEdge = es.iterator(); while (itEdge.hasNext()){ Edge de = (Edge) itEdge.next(); System.out.println(" next edge "+de.toString()); } and I get all "null" as printed values, although es.size() does return the correct number of edges. Is there a way to list all the edges correctly ? Many thanks, Federico |