<commit_before>/*
 * This file is part of the ScaleGraph?PropelGraph project (http://scalegraph.org).
 *
 * This file is licensed to You under the Eclipse Public License (EPL);
 * You may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.opensource.org/licenses/eclipse-1.0.php
 *
 * (C) Copyright ScaleGraph Team 2014.
 */
package org.propelgraph;

import java.io.IOException;

import com.tinkerpop.blueprints.Graph;
import com.tinkerpop.blueprints.Vertex;
import com.tinkerpop.blueprints.Direction;
import java.util.Set;
import java.io.IOException;

/**
 * This interface exists to provide a generic interface for a 
 * method to do breadth-first search while maximizing any 
 * parallelism that the graph implementation might have.
 * 
 * @author ccjason (11/9/2014)
 */
public interface WavefrontTraversableGraph extends Graph {
    /**
     * Obtains the vertices that are adjacent to the specified 
     * vertices in the specified direction along edges with the 
     * specified label.  This method should work in a fashion 
     * similar to the TinkerPop Blueprints Vertex.getVertices() 
     * method. 
     *  
     * @author ccjason (1/5/2015)
     * 
     * @param setRootVertices  the set of vertices from which the 
     *  		       traversal will be made.
     * @param direction   direction of the traversal from the 
     *  		  specified vertices.
     * @param label label of edges that should be considered.
     * 
     * @return Set<Vertex> 
     */
    public Set<Vertex> getVertices( Set<Vertex> setRootVertices, Direction direction, String label ) throws IOException;
}
<commit_msg>added the getVerticesByRootIds method<commit_after>/*
 * This file is part of the ScaleGraph?PropelGraph project (http://scalegraph.org).
 *
 * This file is licensed to You under the Eclipse Public License (EPL);
 * You may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.opensource.org/licenses/eclipse-1.0.php
 *
 * (C) Copyright ScaleGraph Team 2014.
 */
package org.propelgraph;

import java.io.IOException;

import com.tinkerpop.blueprints.Graph;
import com.tinkerpop.blueprints.Vertex;
import com.tinkerpop.blueprints.Direction;
import java.util.Set;
import java.io.IOException;

/**
 * This interface exists to provide a generic interface for a 
 * method to do breadth-first search while maximizing any 
 * parallelism that the graph implementation might have.
 * 
 * @author ccjason (11/9/2014)
 */
public interface WavefrontTraversableGraph extends Graph {
    /**
     * Obtains the vertices that are adjacent to the specified 
     * vertices in the specified direction along edges with the 
     * specified label.  This method should work in a fashion 
     * similar to the TinkerPop Blueprints Vertex.getVertices() 
     * method. 
     *  
     * @author ccjason (1/5/2015)
     * 
     * @param setRootVertices  the set of vertices from which the 
     *  		       traversal will be made.
     * @param direction   direction of the traversal from the 
     *  		  specified vertices.
     * @param label label of edges that should be considered.
     * 
     * @return Set<Vertex> 
     */
    public Set<Vertex> getVertices( Set<Vertex> setRootVertices, Direction direction, String label ) throws IOException;

    /**
     * behaves as {@link getVertices} except that the 
     * setRootVertices parameter specifies the id of the vertices 
     * rather than the Vertex pointer. 
     * 
     * @author ccjason (1/5/2015)
     * 
     * @param setRootVertices 
     * @param direction 
     * @param label 
     * 
     * @return Set<Vertex> 
     */
    public Set<Vertex> getVerticesByRootIds( Set<String> setRootVertices, Direction direction, String label) throws IOException;
}

{'fraction_non_alphanumeric': 0.07810466024472794, 'fraction_numerical': 0.011455350169226764, 'mean_word_length': 3.048472075869336, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2280830', 'n_tokens_mistral': 1140, 'n_tokens_neox': 1051, 'n_words': 401}