org.h2gis.network.graph_creator
Class ST_ConnectedComponents
java.lang.Object
org.h2gis.h2spatialapi.AbstractFunction
org.h2gis.network.graph_creator.GraphFunction
org.h2gis.network.graph_creator.ST_ConnectedComponents
- All Implemented Interfaces:
- Function, ScalarFunction
public class ST_ConnectedComponents
- extends GraphFunction
- implements ScalarFunction
Calculates the connected components (for undirected graphs) or strongly
connected components (for directed graphs) of a graph.
- Author:
- Adam Gouge
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BATCH_SIZE
protected static final int BATCH_SIZE
- See Also:
- Constant Field Values
NULL_CONNECTED_COMPONENT_NUMBER
public static final int NULL_CONNECTED_COMPONENT_NUMBER
- See Also:
- Constant Field Values
REMARKS
public static final String REMARKS
- See Also:
- Constant Field Values
ST_ConnectedComponents
public ST_ConnectedComponents()
- Constructor
getJavaStaticMethod
public String getJavaStaticMethod()
- Specified by:
getJavaStaticMethod in interface ScalarFunction
getConnectedComponents
public static boolean getConnectedComponents(Connection connection,
String inputTable,
String orientation)
throws SQLException
- Calculate the node and edge connected component tables.
- Parameters:
connection - ConnectioninputTable - Edges table produced by ST_Graphorientation - Orientation string
- Returns:
- True if the calculation was successful
- Throws:
SQLException
Copyright © 2015 IRSTV CNRS-FR-2488. All Rights Reserved.