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,
java.util.Map<E,java.lang.Integer> grouping)
Creates an SRLG graph search object with the given number
of groups and given risk mapping.
|
SrlgGraphSearch(java.util.Map<E,java.lang.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, java.util.Map<E,java.lang.Integer> grouping)
groups
- the number of disjoint risk groupsgrouping
- map linking edges to integral group assignmentspublic SrlgGraphSearch(java.util.Map<E,java.lang.Object> grouping)
grouping
- map linking edges to object group assignments,
with same-group status linked to equalityprotected 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>>