Class ConnexComponents
- java.lang.Object
-
- eu.europa.ec.eurostat.jgiscotools.graph.algo.ConnexComponents
-
public class ConnexComponents extends Object
- Author:
- julien Gaffuri
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceConnexComponents.EdgeFilter
-
Constructor Summary
Constructors Constructor Description ConnexComponents()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Collection<Graph>get(Graph g)static Collection<Graph>get(Graph g, ConnexComponents.EdgeFilter filter, boolean excludeGraphWithSingletonNode)static GraphgetMainNodeNb(Graph g)static CollectionkeepOnlyLargestGraphConnexComponents(Collection lines, int minEdgeNumber)static voidprintNodeNb(Collection<Graph> cc)static voidprintNodeNb(Collection<Graph> ccs, int threshold)
-
-
-
Method Detail
-
get
public static Collection<Graph> get(Graph g)
-
get
public static Collection<Graph> get(Graph g, ConnexComponents.EdgeFilter filter, boolean excludeGraphWithSingletonNode)
- Parameters:
g- the input graphfilter- the filter to restrict the connex component construction to specific edgesexcludeGraphWithSingletonNode- set to true to exclude components composed of a singleton node.- Returns:
-
printNodeNb
public static void printNodeNb(Collection<Graph> cc)
-
printNodeNb
public static void printNodeNb(Collection<Graph> ccs, int threshold)
-
keepOnlyLargestGraphConnexComponents
public static Collection keepOnlyLargestGraphConnexComponents(Collection lines, int minEdgeNumber)
-
-