Change dynamically direction of edge

Sorry, this is incorrect it should be better like:

edgeExplorer = graph.createEdgeExplorer(edgeFilter);
edgeIterator = edgeExplorer.setBaseNode(node);
while(edgeIterator.next()) {
   // now the edgeIterator has a certain 'state', i.e use as EdgeIteratorState
   edgeIterator.getXY
   // to put an edgeIteratorState into a list for later usage you need to 'remember' the current state and detach it from the iterator via:
   edgeIteratorState = edgeIterator.detach(false);
   list.add(edgeIteratorState);
   // detach is usually a rather costly operation and should be done only if necessary
}