public class SrlgGraphSearch<V extends Vertex,E extends Edge<V>> extends AbstractGraphPathSearch<V,E>
AbstractGraphPathSearch.DefaultResult
GraphPathSearch.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 |
---|---|
protected GraphPathSearch.Result<V,E> |
internalSearch(Graph<V,E> graph,
V src,
V dst,
EdgeWeigher<V,E> weigher,
int maxPaths) |
checkArguments, search
public SrlgGraphSearch(int groups, Map<E,Integer> grouping)
groups
- the number of disjoint risk groupsgrouping
- map linking edges to integral group assignmentsprotected GraphPathSearch.Result<V,E> internalSearch(Graph<V,E> graph, V src, V dst, EdgeWeigher<V,E> weigher, int maxPaths)
internalSearch
in class AbstractGraphPathSearch<V extends Vertex,E extends Edge<V>>