Class EdgeSegmentUtils


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

      • EdgeSegmentUtils

        public EdgeSegmentUtils()
    • 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 edge
        ES - type of edge segment
        Parameters:
        edgeSegments - to update
        edgeToEdgeMapping - to use should contain original edge as currently used on vertex and then the value is the new edge to replace it
        removeMissingMappings - when true if there is no mapping, the parent edge is nullified, otherwise it is left in-tact