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