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

com.tinkerpop.gremlin.giraph.process.graph.example.TraversalSupplier3 Maven / Gradle / Ivy

package com.tinkerpop.gremlin.giraph.process.graph.example;

import com.tinkerpop.gremlin.giraph.structure.GiraphGraph;
import com.tinkerpop.gremlin.process.Traversal;
import com.tinkerpop.gremlin.util.function.SSupplier;

import java.util.Collection;

/**
 * @author Marko A. Rodriguez (http://markorodriguez.com)
 */
public class TraversalSupplier3 implements SSupplier {
    public Traversal get() {
        return GiraphGraph.open().V().value("name").groupBy(s -> s.substring(1, 2), v -> v, Collection::size);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy