Interface TopologicalLayerModifier

    • Method Detail

      • removeDanglingSubnetworks

        void removeDanglingSubnetworks​(Integer belowSize,
                                       Integer aboveSize,
                                       boolean alwaysKeepLargest)
                                throws PlanItException
        remove any dangling subnetworks below a given size from the network if they exist and subsequently reorder the internal ids if needed
        Parameters:
        belowSize - remove subnetworks below the given size
        aboveSize - remove subnetworks above the given size (typically set to maximum value)
        alwaysKeepLargest - when true the largest of the subnetworks is always kept, otherwise not
        Throws:
        PlanItException - thrown if error
      • removeDanglingSubnetworks

        default void removeDanglingSubnetworks()
                                        throws PlanItException
        remove any dangling subnetworks from the layer if they exist and subsequently reorder the internal ids if needed
        Throws:
        PlanItException - thrown if error