public class BFS extends Object implements GraphTraversal
Constructor and Description |
---|
BFS(slib.sglib.model.graph.G g,
Set<org.openrdf.model.URI> sources,
slib.sglib.model.graph.utils.WalkConstraint wc)
Creates an instance of BFS used to perform a Bread First Search Traversal
over the graph.
|
BFS(slib.sglib.model.graph.G g,
org.openrdf.model.URI source,
slib.sglib.model.graph.utils.WalkConstraint wc)
Creates an instance of BFS used to perform a Bread First Search Traversal
over the graph.
|
public BFS(slib.sglib.model.graph.G g, Set<org.openrdf.model.URI> sources, slib.sglib.model.graph.utils.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(slib.sglib.model.graph.G g, org.openrdf.model.URI source, slib.sglib.model.graph.utils.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 GraphTraversal
public org.openrdf.model.URI next()
next
in interface GraphTraversal
Copyright © 2014. All rights reserved.