Package com.alibaba.graphscope.ds
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 interfaceVertex.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.booleaneq(Vertex<VID_T> vertex)Judge whether Two vertex id are the same.VID_TgetValue()Get vertex id.Vertex<VID_T>inc()Note this is not necessary to be a prefix incrementvoidsetValue(VID_T id)Set vertex id.
-
-
-
Method Detail
-
copy
Vertex<VID_T> copy()
Return a deep copy of current vertex.- Specified by:
copyin interfacecom.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:
incin interfacecom.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:
eqin interfacecom.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.
-
-