public List < EdgeIteratorState > calcEdges ( ) { final List < EdgeIteratorState > edges = new ArrayList <> ( edgeIds . size ( ) ) ; if ( edgeIds . isEmpty ( ) ) return edges ; forEveryEdge ( new EdgeVisitor ( ) { @ Override public void next ( EdgeIteratorState eb , int index , int prevEdgeId ) { edges . add ( eb ) ; } @ Override public void finish ( ) { } } ) ; return edges ; }
Returns the list of all edges .