public static class NearestVertexWalker.Builder<V extends SequenceElement>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
depth |
protected SamplingMode |
samplingMode |
protected long |
seed |
protected IGraph<V,?> |
sourceGraph |
protected int |
walkLength |
Modifier and Type | Method and Description |
---|---|
NearestVertexWalker<V> |
build()
This method returns you new GraphWalker instance
|
NearestVertexWalker.Builder |
setDepth(int depth)
This method specifies, how deep walker goes from starting point
Default value: 1
|
NearestVertexWalker.Builder |
setSamplingMode(SamplingMode mode)
This method defines sorting which will be used to generate walks.
|
NearestVertexWalker.Builder |
setSeed(long seed) |
NearestVertexWalker.Builder |
setWalkLength(int length)
This method defines maximal number of nodes to be visited during walk.
|
protected int walkLength
protected IGraph<V extends SequenceElement,?> sourceGraph
protected SamplingMode samplingMode
protected long seed
protected int depth
public NearestVertexWalker.Builder setSeed(long seed)
public NearestVertexWalker.Builder setWalkLength(int length)
length
- public NearestVertexWalker.Builder setDepth(int depth)
depth
- public NearestVertexWalker.Builder setSamplingMode(@NonNull SamplingMode mode)
mode
- public NearestVertexWalker<V> build()