Interface AdjList<VID_T,​EDATA_T>

  • Type Parameters:
    VID_T - vertex id type.
    EDATA_T - edge data type.
    All Known Implementing Classes:
    GrapeAdjListAdaptor, ProjectedAdjListAdaptor

    public interface AdjList<VID_T,​EDATA_T>
    This interface define the neighboring vertices and edge data for a vertex.
    • Method Detail

      • begin

        Nbr<VID_T,​EDATA_T> begin()
        Get the begin Nbr.
        Returns:
        the first Nbr.
      • end

        Nbr<VID_T,​EDATA_T> end()
        Get the last Nbr.
        Returns:
        the last Nbr.
      • size

        long size()
        Get the size of this adjList.
        Returns:
        size
      • iterable

        default Iterable<Nbr<VID_T,​EDATA_T>> iterable()
        The iterator for adjlist. You can use enhanced for loop instead of directly using this.
        Returns:
        the iterator.