All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.deeplearning4j.graph.iterator.GraphWalkIterator Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
package org.deeplearning4j.graph.iterator;

import org.deeplearning4j.graph.api.IVertexSequence;

/**Interface/iterator representing a sequence of walks on a graph
 * For example, a {@code GraphWalkIterator} can represesnt a set of independent random walks on a graph
 */
public interface GraphWalkIterator {

    /** Length of the walks returned by next()
     * Note that a walk of length {@code i} contains {@code i+1} vertices
     */
    int walkLength();

    /**Get the next vertex sequence.
     */
    IVertexSequence next();

    /** Whether the iterator has any more vertex sequences. */
    boolean hasNext();

    /** Reset the graph walk iterator. */
    void reset();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy