public class SrlgGraphSearch<V extends Vertex,E extends Edge<V>> extends AbstractGraphPathSearch<V,E>
AbstractGraphPathSearch.DefaultResultGraphPathSearch.Result<V extends Vertex,E extends Edge<V>>ALL_PATHS| Constructor and Description |
|---|
SrlgGraphSearch(int groups,
Map<E,Integer> grouping)
Creates an SRLG graph search object with the given number
of groups and given risk mapping.
|
SrlgGraphSearch(Map<E,Object> grouping)
Creates an SRLG graph search object from a map, inferring
the number of groups and creating an integral mapping.
|
| Modifier and Type | Method and Description |
|---|---|
GraphPathSearch.Result<V,E> |
search(Graph<V,E> graph,
V src,
V dst,
EdgeWeight<V,E> weight,
int maxPaths)
Searches the specified graph for paths between vertices.
|
checkArguments, samenessThreshold, setSamenessThresholdpublic SrlgGraphSearch(int groups,
Map<E,Integer> grouping)
groups - the number of disjoint risk groupsgrouping - map linking edges to integral group assignmentspublic GraphPathSearch.Result<V,E> search(Graph<V,E> graph, V src, V dst, EdgeWeight<V,E> weight, int maxPaths)
GraphPathSearchgraph - graph to be searchedsrc - optional source vertexdst - optional destination vertex; if null paths to all vertex
destinations will be searchedweight - optional edge-weight; if null cost of each edge will be
assumed to be 1.0maxPaths - limit on number of paths; GraphPathSearch.ALL_PATHS if no limit