public class FindPathOptions extends Object
| Constructor and Description |
|---|
FindPathOptions(String sourceVertexId,
String destVertexId,
int maxHops) |
FindPathOptions(String sourceVertexId,
String destVertexId,
int maxHops,
boolean getAnyPath) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDestVertexId() |
String[] |
getExcludedLabels() |
String[] |
getLabels() |
int |
getMaxHops() |
ProgressCallback |
getProgressCallback() |
String |
getSourceVertexId() |
boolean |
isGetAnyPath() |
FindPathOptions |
setExcludedLabels(String... excludedLabels)
Edge labels to be excluded from traversal
|
FindPathOptions |
setLabels(String... labels)
Edge labels to include, if null any label will be traversed
|
FindPathOptions |
setProgressCallback(ProgressCallback progressCallback) |
String |
toString() |
public FindPathOptions(String sourceVertexId, String destVertexId, int maxHops)
sourceVertexId - The source vertex id to start the search from.destVertexId - The destination vertex id to get to.maxHops - The maximum number of hops to make before giving up.public FindPathOptions(String sourceVertexId, String destVertexId, int maxHops, boolean getAnyPath)
sourceVertexId - The source vertex id to start the search from.destVertexId - The destination vertex id to get to.maxHops - The maximum number of hops to make before giving up.getAnyPath - Return as soon as the first path is foundpublic String getSourceVertexId()
public String getDestVertexId()
public int getMaxHops()
public String[] getLabels()
public boolean isGetAnyPath()
public FindPathOptions setLabels(String... labels)
public String[] getExcludedLabels()
public FindPathOptions setExcludedLabels(String... excludedLabels)
public ProgressCallback getProgressCallback()
public FindPathOptions setProgressCallback(ProgressCallback progressCallback)
Copyright © 2016–2021 MWARE SOLUTIONS. All rights reserved.