/// <summary> /// Returns a multi-directed selection cursor given the provided node cursor and relationship types. /// </summary> /// <param name="cursors"> A cursor factor used for allocating the needed cursors </param> /// <param name="node"> A node cursor positioned at the current node. </param> /// <param name="types"> The types of the relationship </param> /// <returns> A cursor that allows traversing the relationship chain. </returns> public static RelationshipSelectionCursor AllCursor(CursorFactory cursors, NodeCursor node, int[] types) { if (node.Dense) { RelationshipDenseSelectionCursor selectionCursor = new RelationshipDenseSelectionCursor(); SetupAllDense(selectionCursor, cursors, node, types); return(selectionCursor); } else { RelationshipSparseSelectionCursor selectionCursor = new RelationshipSparseSelectionCursor(); SetupAllSparse(selectionCursor, cursors, node, types); return(selectionCursor); } }
void assertEmpty(RelationshipSparseSelectionCursor iterator) { AssertEmpty(( RelationshipSelectionCursor )iterator); }
void assertLoop(RelationshipSparseSelectionCursor iterator, int type) { AssertLoop(( RelationshipSelectionCursor )iterator, type); }
void assertIncoming(RelationshipSparseSelectionCursor iterator, int sourceNode, int type) { AssertIncoming(( RelationshipSelectionCursor )iterator, sourceNode, type); }
void assertOutgoing(RelationshipSparseSelectionCursor iterator, int targetNode, int type) { AssertOutgoing(( RelationshipSelectionCursor )iterator, targetNode, type); }