Class EdgeSegmentUtils
- java.lang.Object
-
- org.goplanit.utils.graph.directed.EdgeSegmentUtils
-
public class EdgeSegmentUtils extends Object
Utilities for Edge Segments that ar unfit for inclusion in the class itself
-
-
Constructor Summary
Constructors Constructor Description EdgeSegmentUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <ES extends EdgeSegment,E extends DirectedEdge>
voidupdateEdgeSegmentParentEdges(Iterable<ES> edgeSegments, Function<E,E> edgeToEdgeMapping, boolean removeMissingMappings)
Update the parent edge of all edge segments based on the mapping provided (if any)
-
-
-
Method Detail
-
updateEdgeSegmentParentEdges
public static <ES extends EdgeSegment,E extends DirectedEdge> void updateEdgeSegmentParentEdges(Iterable<ES> edgeSegments, Function<E,E> edgeToEdgeMapping, boolean removeMissingMappings)
Update the parent edge of all edge segments based on the mapping provided (if any)- Type Parameters:
E
- type of edgeES
- type of edge segment- Parameters:
edgeSegments
- to updateedgeToEdgeMapping
- to use should contain original edge as currently used on vertex and then the value is the new edge to replace itremoveMissingMappings
- when true if there is no mapping, the parent edge is nullified, otherwise it is left in-tact
-
-