public class ObstacleGraph
extends java.lang.Object
Constructor and Description |
---|
ObstacleGraph() |
Modifier and Type | Method and Description |
---|---|
static <S extends Segment> |
findObstacleGraph(java.util.ArrayList<S> segments)
Finds the obstacle graph of the given
ArrayList of OrthogonalSegment
segments. |
public static <S extends Segment> java.util.ArrayList<Pair<S,S>> findObstacleGraph(java.util.ArrayList<S> segments)
ArrayList
of OrthogonalSegment
segments.S
- The segment class with which this obstacle graph will work.segments
- the vertical segments for which to find the obstacle graphArrayList
of pairs of vertical segments, with each pair corresponding to
an edge in the obstacle graph going from the first segment of the pair to the second.