public class BFS extends Object implements GraphTraversal
| Constructor and Description |
|---|
BFS(G g,
Set<org.openrdf.model.URI> sources,
WalkConstraint wc)
Creates an instance of BFS used to perform a Bread First Search Traversal
over the graph.
|
BFS(G g,
org.openrdf.model.URI source,
WalkConstraint wc)
Creates an instance of BFS used to perform a Bread First Search Traversal
over the graph.
|
public BFS(G g, Set<org.openrdf.model.URI> sources, WalkConstraint wc)
g - the graph to considersources - the set of vertices considered as sources of the traversal
i.e. from which the traversal startwc - the constraint applied to the walkpublic BFS(G g, org.openrdf.model.URI source, WalkConstraint wc)
g - the graph to considersource - the source of the traversal i.e. from which the traversal
startwc - the constraint applied to the walkpublic boolean hasNext()
hasNext in interface GraphTraversalpublic org.openrdf.model.URI next()
next in interface GraphTraversalCopyright © 2014. All rights reserved.