
com.tinkerpop.gremlin.pipes.transform.IdEdgePipe Maven / Gradle / Ivy
package com.tinkerpop.gremlin.pipes.transform;
import com.tinkerpop.blueprints.Edge;
import com.tinkerpop.blueprints.Graph;
import com.tinkerpop.pipes.AbstractPipe;
/**
* @author Marko A. Rodriguez (http://markorodriguez.com)
*/
public class IdEdgePipe extends AbstractPipe {
private final Graph graph;
public IdEdgePipe(final Graph graph) {
this.graph = graph;
}
protected Edge processNextStart() {
return this.graph.getEdge(this.starts.next());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy