Class EdgeLinkedList


  • public class EdgeLinkedList
    extends Object
    Linked list uses to manage edges in vertex. The edges are stored in reverse order from insertion. The last item is the first in the list.
    Author:
    Luca Garulli ([email protected])
    • Method Detail

      • containsEdge

        public boolean containsEdge​(RID rid)
      • containsVertex

        public boolean containsVertex​(RID rid,
                                      int[] edgeBucketFilter)
      • count

        public long count​(String edgeType)
        Counts the items in the linked list.
        Parameters:
        edgeType - Type of edge to filter for the counting. If it is null, any type is counted.
        Returns:
      • add

        public void add​(RID edgeRID,
                        RID vertexRID)
      • removeEdge

        public void removeEdge​(Edge edge)
      • removeEdgeRID

        public void removeEdgeRID​(RID edge)
      • removeVertex

        public void removeVertex​(RID vertexRID)