BugFix nullPointer if edges direction isn't known