From: Joshua O'M. <jm...@ic...> - 2003-10-22 20:02:26
|
On Wednesday, Oct 22, 2003, at 12:50 US/Pacific, Danyel Fisher wrote: > Assuming your graph isn't too big, my first > reccomendation would be to keep a spare > copy of the graph around. > > Graph g = .... > Graph g2 = g.copy(); > > for( edge in g.getEdges().iterator() ) { > checkrange( g2.getCorrespondingEdge( g )); > } > > g2, of course, can be modified however you want > safely. so take out the edge, measure the distance, > and put it back in. Just to clarify, that should be checkrange( edge.getEquivalentEdge(g) ); Joshua jm...@ic......Obscurium Per Obscurius...www.ics.uci.edu/~jmadden Joshua O'Madadhain: Information Scientist, Musician, Philosopher-At-Tall It's that moment of dawning comprehension that I live for--Bill Watterson My opinions are too rational and insightful to be those of any organization. |