Package org.graph4j
Class UndirectedGraphAlgorithm
java.lang.Object
org.graph4j.UndirectedGraphAlgorithm
- Direct Known Subclasses:
ChordalGraphSupport,TriangleCounter
Abstract class for algorithms that accept only undirected graphs as input.
- Author:
- Cristian Frăsinaru
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUndirectedGraphAlgorithm(Graph graph) Creates a new instance of the algorithm. -
Method Summary
-
Field Details
-
graph
-
-
Constructor Details
-
UndirectedGraphAlgorithm
Creates a new instance of the algorithm.- Parameters:
graph- the input undirected graph- Throws:
NullPointerException- if the graph is null.IllegalArgumentException- if the graph is directed.
-