if (!currentNode.equals(currentEdge.getFirst().getSource())) {
try {
throw new YouShallNotDoThisException("bullshit");
} catch (YouShallNotDoThisException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
;
currentNode = currentEdge.getFirst().getTarget();
currentPath.getEdges().add(currentEdge.getFirst());