Interface EdgesCollection

  • All Superinterfaces:
    com.alibaba.fastffi.CXXPointer, com.alibaba.fastffi.FFIPointer, com.alibaba.fastffi.FFIType, Iterable<Edge>

    public interface EdgesCollection
    extends com.alibaba.fastffi.CXXPointer, Iterable<Edge>
    EdgesCollection is designed for reading a collection of edges.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      EdgeIter begin()
      The iterator pointing to the first edge.
      EdgeIter end()
      The iterator pointing to the past-the-end element.
      EdgeIter findDst​(long id, EdgeIter from)
      Construct and return the iterator pointing to the first incoming edge of the vertex with specific id after the input iterator.
      EdgeIter findSrc​(long id, EdgeIter from)
      Construct and return the iterator pointing to the first out-going edge of the vertex with specific id after the input iterator.
      default Iterator<Edge> iterator()
      Implement Iterable interface to support for-each loop.
      long size()
      Get the number of edges in the collection.
      • Methods inherited from interface com.alibaba.fastffi.CXXPointer

        delete
      • Methods inherited from interface com.alibaba.fastffi.FFIPointer

        getAddress
    • Method Detail

      • begin

        EdgeIter begin()
        The iterator pointing to the first edge.
      • end

        EdgeIter end()
        The iterator pointing to the past-the-end element.
      • findSrc

        EdgeIter findSrc​(long id,
                         EdgeIter from)
        Construct and return the iterator pointing to the first out-going edge of the vertex with specific id after the input iterator.
        Parameters:
        id - The vertex id.
        from - The input iterator.
        Returns:
        The new constructed iterator.
      • findDst

        EdgeIter findDst​(long id,
                         EdgeIter from)
        Construct and return the iterator pointing to the first incoming edge of the vertex with specific id after the input iterator.
        Parameters:
        id - The vertex id.
        from - The input iterator.
        Returns:
        The new constructed iterator.
      • size

        long size()
        Get the number of edges in the collection.