public class WeightedWalker<T extends SequenceElement> extends RandomWalker<T> implements GraphWalker<T>
| Modifier and Type | Class and Description |
|---|---|
static class |
WeightedWalker.Builder<T extends SequenceElement> |
alpha, noEdgeHandling, order, position, rng, seed, sourceGraph, walkDirection, walkLength| Modifier | Constructor and Description |
|---|---|
protected |
WeightedWalker() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
This method checks, if walker has any more sequences left in queue
|
boolean |
isLabelEnabled() |
Sequence<T> |
next()
This method returns next walk sequence from this graph
|
void |
reset(boolean shuffle)
This method resets walker
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSourceGraphpublic boolean hasNext()
hasNext in interface GraphWalker<T extends SequenceElement>hasNext in class RandomWalker<T extends SequenceElement>public boolean isLabelEnabled()
isLabelEnabled in interface GraphWalker<T extends SequenceElement>isLabelEnabled in class RandomWalker<T extends SequenceElement>public Sequence<T> next()
next in interface GraphWalker<T extends SequenceElement>next in class RandomWalker<T extends SequenceElement>public void reset(boolean shuffle)
reset in interface GraphWalker<T extends SequenceElement>reset in class RandomWalker<T extends SequenceElement>shuffle - if TRUE, order of walks will be shuffled