java.lang.Object
org.jgrapht.graph.DirectedAcyclicGraph.Region
- All Implemented Interfaces:
Serializable
- Enclosing class:
- DirectedAcyclicGraph<V,
E>
An inclusive range of indices: [start, finish].
- Author:
- Peter Giles
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Region
public Region(int start, int finish) Construct a new region.- Parameters:
start
- the start of the regionfinish
- the end of the region (inclusive)
-
-
Method Details
-
getSize
public int getSize()Get the size of the region.- Returns:
- the size of the region
-
isIn
public boolean isIn(int index) Check if index is in the region.- Parameters:
index
- the index to check- Returns:
- true if the index is in the region, false otherwise
-
getStart
public int getStart()Get the start of the region.- Returns:
- the start of the region
-
getFinish
public int getFinish()Get the end of the region (inclusive).- Returns:
- the end of the region (inclusive)
-