public class ShortestPathOptions extends AbstractOptions implements OptionsInterface
Constructor and Description |
---|
ShortestPathOptions() |
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm()
The algorithm to calculate the shortest paths.
|
Long |
getDefaultWeight()
Only used with the option weight.
|
Direction |
getDirection()
The direction of the edges as a string.
|
List<String> |
getEdgeCollectionRestriction()
One or multiple edge collection names.
|
Object |
getEdgeExamples()
A filter example for the edges
|
List<String> |
getEndVertexCollectionRestriction()
One or multiple vertex collection names.
|
List<String> |
getStartVertexCollectionRestriction()
One or multiple vertex collection names.
|
String |
getWeight()
The name of the attribute of the edges containing the length as a string.
|
ShortestPathOptions |
setAlgorithm(String algorithm)
The algorithm to calculate the shortest paths.
|
ShortestPathOptions |
setDefaultWeight(Long defaultWeight)
Only used with the option weight.
|
ShortestPathOptions |
setDirection(Direction direction)
The direction of the edges as a string.
|
ShortestPathOptions |
setEdgeCollectionRestriction(List<String> edgeCollectionRestriction)
One or multiple edge collection names.
|
ShortestPathOptions |
setEdgeExamples(Object edgeExamples)
A filter example for the edges
|
ShortestPathOptions |
setEndVertexCollectionRestriction(List<String> endVertexCollectionRestriction)
One or multiple vertex collection names.
|
ShortestPathOptions |
setStartVertexCollectionRestriction(List<String> startVertexCollectionRestriction)
One or multiple vertex collection names.
|
ShortestPathOptions |
setWeight(String weight)
The name of the attribute of the edges containing the length as a string.
|
Map<String,Object> |
toMap()
Returns a map of the options
|
putAttribute, putAttribute, putAttributeCollection, putAttributeToLower, putAttributeToLower
public Direction getDirection()
public ShortestPathOptions setDirection(Direction direction)
direction
- public List<String> getEdgeCollectionRestriction()
public ShortestPathOptions setEdgeCollectionRestriction(List<String> edgeCollectionRestriction)
edgeCollectionRestriction
- public List<String> getStartVertexCollectionRestriction()
public ShortestPathOptions setStartVertexCollectionRestriction(List<String> startVertexCollectionRestriction)
startVertexCollectionRestriction
- public List<String> getEndVertexCollectionRestriction()
public ShortestPathOptions setEndVertexCollectionRestriction(List<String> endVertexCollectionRestriction)
endVertexCollectionRestriction
- public Object getEdgeExamples()
public ShortestPathOptions setEdgeExamples(Object edgeExamples)
edgeExamples
- public String getAlgorithm()
public ShortestPathOptions setAlgorithm(String algorithm)
algorithm
- public String getWeight()
public ShortestPathOptions setWeight(String weight)
weight
- public Long getDefaultWeight()
public ShortestPathOptions setDefaultWeight(Long defaultWeight)
defaultWeight
- public Map<String,Object> toMap()
toMap
in interface OptionsInterface
Copyright © 2012–2016 ArangoDB GmbH. All rights reserved.