Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Done
-
None
-
None
Description
Like Neo4j 1.x, we see the same issue in Neo4j 2.x. I added the following methods to Neo4jHelper.
public static boolean isDeleted(final Node node) { try { node.getLabels().iterator().next(); return false; } catch (final IllegalStateException e) { return true; } } public static boolean isDeleted(final Relationship relationship) { try { relationship.getType(); return false; } catch (final IllegalStateException e) { return true; } }
In TinkerPop2 we allowed a user to specifiy if they wanted to have this check done or not with a boolean flag (speed vs. consistency). Provide the same option for TP3 Neo4jGraph.