Class DirectedEdgeUtils


  • public class DirectedEdgeUtils
    extends Object
    Utilities for Edge Segments that ar unfit for inclusion in the class itself
    • Constructor Detail

      • DirectedEdgeUtils

        public DirectedEdgeUtils()
    • 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 edge
        ES - type of edge segment
        Parameters:
        edges - edges to update
        edgeSegmentToEdgeSegmentMapping - to use should contain original edgeSegment and then the value is the new edgeSegment to replace it
        removeMissingMappings - when true if there is no mapping, the edgeSegment on the directed edge is nullified, otherwise it is left in-tact