Class ShortestPathVertexProgramTest
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.AbstractGremlinTest
-
- org.apache.tinkerpop.gremlin.process.AbstractGremlinProcessTest
-
- org.apache.tinkerpop.gremlin.process.computer.search.path.ShortestPathVertexProgramTest
-
public class ShortestPathVertexProgramTest extends AbstractGremlinProcessTest
- Author:
- Daniel Kuppitz (http://gremlin.guru)
-
-
Field Summary
Fields Modifier and Type Field Description static String[][]
ALL_SHORTEST_PATHS
-
Fields inherited from class org.apache.tinkerpop.gremlin.AbstractGremlinTest
config, g, graph, graphProvider, name, shouldTestIteratorLeak
-
-
Constructor Summary
Constructors Constructor Description ShortestPathVertexProgramTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initializeHelper()
void
shouldFindAllShortestPathsWithDefaultParameters()
void
shouldFindAllShortestPathsWithEdgesIncluded()
void
shouldFindDirectedShortestPathsWithEdgesIncluded()
void
shouldFindEqualLengthPaths()
void
shouldFindEqualLengthPathsUsingDistanceProperty()
void
shouldFindInDirectedShortestPaths()
void
shouldFindOutDirectedShortestPaths()
void
shouldFindShortestPathsWithEndVertexFilter()
void
shouldFindShortestPathsWithStartEndVertexFilter()
void
shouldFindShortestPathsWithStartVertexFilter()
void
shouldRespectMaxCustomDistance()
void
shouldRespectMaxDistance()
void
shouldUseCustomDistanceProperty()
-
Methods inherited from class org.apache.tinkerpop.gremlin.process.AbstractGremlinProcessTest
checkHasNext, checkMap, checkOrderedResults, checkResults, checkResults, checkSideEffects, graphMeetsTestRequirements, hasGraphComputerRequirement, makeMapList, setupTest
-
Methods inherited from class org.apache.tinkerpop.gremlin.AbstractGremlinTest
afterLoadGraphWith, assertVertexEdgeCounts, beforeLoadGraphWith, convertToEdge, convertToEdge, convertToEdgeId, convertToEdgeId, convertToVertex, convertToVertex, convertToVertexId, convertToVertexId, convertToVertexProperty, convertToVertexProperty, convertToVertexPropertyId, convertToVertexPropertyId, getAssertVertexEdgeCounts, printTraversalForm, setup, tearDown, tryCommit, tryCommit, tryRollback, validateException, verifyRootIdentification, verifyUniqueStepIds
-
-
-
-
Field Detail
-
ALL_SHORTEST_PATHS
public static String[][] ALL_SHORTEST_PATHS
-
-
Method Detail
-
shouldFindAllShortestPathsWithDefaultParameters
public void shouldFindAllShortestPathsWithDefaultParameters() throws Exception
- Throws:
Exception
-
shouldFindAllShortestPathsWithEdgesIncluded
public void shouldFindAllShortestPathsWithEdgesIncluded() throws Exception
- Throws:
Exception
-
shouldFindOutDirectedShortestPaths
public void shouldFindOutDirectedShortestPaths() throws Exception
- Throws:
Exception
-
shouldFindInDirectedShortestPaths
public void shouldFindInDirectedShortestPaths() throws Exception
- Throws:
Exception
-
shouldFindDirectedShortestPathsWithEdgesIncluded
public void shouldFindDirectedShortestPathsWithEdgesIncluded() throws Exception
- Throws:
Exception
-
shouldFindShortestPathsWithStartVertexFilter
public void shouldFindShortestPathsWithStartVertexFilter() throws Exception
- Throws:
Exception
-
shouldFindShortestPathsWithEndVertexFilter
public void shouldFindShortestPathsWithEndVertexFilter() throws Exception
- Throws:
Exception
-
shouldFindShortestPathsWithStartEndVertexFilter
public void shouldFindShortestPathsWithStartEndVertexFilter() throws Exception
- Throws:
Exception
-
shouldUseCustomDistanceProperty
public void shouldUseCustomDistanceProperty() throws Exception
- Throws:
Exception
-
shouldFindEqualLengthPaths
public void shouldFindEqualLengthPaths() throws Exception
- Throws:
Exception
-
shouldFindEqualLengthPathsUsingDistanceProperty
public void shouldFindEqualLengthPathsUsingDistanceProperty() throws Exception
- Throws:
Exception
-
-