private void VisitDegrees(StorageNodeCursor node, DegreeVisitor visitor)
 {
     _groupCursor.init(node.EntityReference(), node.RelationshipGroupReference());
     while (_groupCursor.next())
     {
         int loopCount = _groupCursor.loopCount();
         visitor.VisitDegree(_groupCursor.type(), _groupCursor.outgoingCount() + loopCount, _groupCursor.incomingCount() + loopCount);
     }
 }
        public override int OutgoingCount()
        {
            int count = _storeCursor.outgoingCount();

            return(_read.hasTxStateWithChanges() ? _read.txState().getNodeState(_storeCursor.OwningNode).augmentDegree(RelationshipDirection.OUTGOING, count, _storeCursor.type()) : count);
        }