Class ConnexComponents


  • public class ConnexComponents
    extends Object
    Author:
    julien Gaffuri
    • Constructor Detail

      • ConnexComponents

        public ConnexComponents()
    • Method Detail

      • get

        public static Collection<Graph> get​(Graph g,
                                            ConnexComponents.EdgeFilter filter,
                                            boolean excludeGraphWithSingletonNode)
        Parameters:
        g - the input graph
        filter - the filter to restrict the connex component construction to specific edges
        excludeGraphWithSingletonNode - set to true to exclude components composed of a singleton node.
        Returns:
      • getMainNodeNb

        public static Graph getMainNodeNb​(Graph g)
      • printNodeNb

        public static void printNodeNb​(Collection<Graph> ccs,
                                       int threshold)
      • keepOnlyLargestGraphConnexComponents

        public static Collection keepOnlyLargestGraphConnexComponents​(Collection lines,
                                                                      int minEdgeNumber)