Interface Vertex<VID_T>

  • Type Parameters:
    VID_T - vertex id type. Long recommended.
    All Superinterfaces:
    com.alibaba.fastffi.CXXPointer, com.alibaba.fastffi.CXXValueRangeElement<Vertex<VID_T>>, com.alibaba.fastffi.FFIPointer, FFIType, Serializable
    All Known Implementing Classes:
    Vertex_cxx_0xaca404e3, Vertex_cxx_0xaccf3424

    public interface Vertex<VID_T>
    extends com.alibaba.fastffi.FFIPointer, com.alibaba.fastffi.CXXPointer, com.alibaba.fastffi.CXXValueRangeElement<Vertex<VID_T>>
    Java Wrapper for grape::Vertex.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static interface  Vertex.Factory<VID_T>
      Factory class to create vertex instance.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Vertex<VID_T> copy()
      Return a deep copy of current vertex.
      boolean eq​(Vertex<VID_T> vertex)
      Judge whether Two vertex id are the same.
      VID_T getValue()
      Get vertex id.
      Vertex<VID_T> inc()
      Note this is not necessary to be a prefix increment
      void setValue​(VID_T id)
      Set vertex id.
      • Methods inherited from interface com.alibaba.fastffi.CXXPointer

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

        getAddress
    • Method Detail

      • copy

        Vertex<VID_T> copy()
        Return a deep copy of current vertex.
        Specified by:
        copy in interface com.alibaba.fastffi.CXXValueRangeElement<VID_T>
        Returns:
        the copied vertex.
      • inc

        Vertex<VID_T> inc()
        Note this is not necessary to be a prefix increment
        Specified by:
        inc in interface com.alibaba.fastffi.CXXValueRangeElement<VID_T>
        Returns:
        current vertex with vertex.id + 1
      • eq

        boolean eq​(Vertex<VID_T> vertex)
        Judge whether Two vertex id are the same.
        Specified by:
        eq in interface com.alibaba.fastffi.CXXValueRangeElement<VID_T>
        Parameters:
        vertex - vertex to compare with.
        Returns:
        equal or not.
      • getValue

        VID_T getValue()
        Get vertex id.
        Returns:
        vertex id.
      • setValue

        void setValue​(VID_T id)
        Set vertex id.
        Parameters:
        id - id to be set.