public class TestBFS extends AbstractBigdataGraphTestCase
BFS
AbstractBigdataGraphTestCase.SmallGraphProblem, AbstractBigdataGraphTestCase.SmallWeightedGraphProblem
Modifier and Type | Method and Description |
---|---|
void |
testBFS_directed_forward()
Variant test in which we choose a vertex (
foaf:person ) in
the middle of the graph and insist on forward directed edges. |
void |
testBFS_directed_reverse()
Variant test in which we choose a vertex (
foaf:person ) in
the middle of the graph and insist on reverse directed edges. |
void |
testBFS_undirected()
Variant test in which we choose a vertex (
foaf:person ) in
the middle of the graph and insist on directed edges. |
void |
testBFS() |
getGraphFixture, getGraphFixtureFactory, getProperties, setupSmallGraphProblem, setupSmallWeightedGraphProblem
assertSameEdges, set, setUp, tearDown
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString
public TestBFS()
public TestBFS(String name)
public void testBFS_directed_forward() throws Exception
foaf:person
) in
the middle of the graph and insist on forward directed edges. Since the
edges point from the person to the foaf:person
vertex, this
BSF traversal does not discover any connected vertices.Exception
public void testBFS_directed_reverse() throws Exception
foaf:person
) in
the middle of the graph and insist on reverse directed edges. Since the
edges point from the person to the foaf:person
vertex,
forward BSF traversal does not discover any connected vertices. However,
since the traversal direction is reversed, the vertices are all one hop
away.Exception
public void testBFS_undirected() throws Exception
foaf:person
) in
the middle of the graph and insist on directed edges. Since the edges
point from the person to the foaf:person
vertex, this BSF
traversal does not discover any connected vertices.Exception
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.