protected static class AbstractGraphPathSearch.DefaultResult extends Object implements GraphPathSearch.Result
Modifier and Type | Field and Description |
---|---|
protected Map<Vertex,Double> |
costs |
protected Map<Vertex,Set<Edge>> |
parents |
protected Map<Vertex,Path> |
pathMap |
protected Set<Path> |
pathSet |
protected Set<Vertex> |
sortedDest |
Modifier | Constructor and Description |
---|---|
protected |
AbstractGraphPathSearch.DefaultResult() |
Modifier and Type | Method and Description |
---|---|
void |
addPath(Path path)
Add the path to the search results.
|
Map<Vertex,Double> |
costs()
Return a map of vertex costs in the path.
|
Collection<Path> |
getPaths()
Returns the paths accrued during the search.
|
Map<Vertex,Set<Edge>> |
parents()
Return a map of vertex parent edges in the path.
|
Set<Path> |
paths()
Deprecated
Returns the set of paths accrued during the search.
|
protected AbstractGraphPathSearch.DefaultResult()
public Set<Path> paths()
GraphPathSearch.Result
paths
in interface GraphPathSearch.Result
public Collection<Path> getPaths()
GraphPathSearch.Result
getPaths
in interface GraphPathSearch.Result
public void addPath(Path path)
path
- path to addpublic Map<Vertex,Set<Edge>> parents()
GraphPathSearch.Result
parents
in interface GraphPathSearch.Result
public Map<Vertex,Double> costs()
GraphPathSearch.Result
costs
in interface GraphPathSearch.Result
Copyright © 2015. All Rights Reserved.