Package org.graph4j.vsp
Class BacktrackVertexSeparator
java.lang.Object
org.graph4j.SimpleGraphAlgorithm
org.graph4j.vsp.VertexSeparatorBase
org.graph4j.vsp.BacktrackVertexSeparator
- All Implemented Interfaces:
VertexSeparatorAlgorithm
WORK IN PROGRESS.
Attempts at finding an optimum vertex separator using a systematic
exploration of the search space. The backtracking is implemented in a
non-recursive manner, using multiple threads.
A time limit may be imposed. If the algorithm stops due to the time limit, it will return the best separator found until then.
- Author:
- Cristian Frăsinaru
-
Field Summary
Fields inherited from class org.graph4j.vsp.VertexSeparatorBase
maxShoreSizeFields inherited from class org.graph4j.SimpleGraphAlgorithm
graph -
Constructor Summary
ConstructorsConstructorDescriptionBacktrackVertexSeparator(Graph graph) BacktrackVertexSeparator(Graph graph, int maxShoreSize) -
Method Summary
Modifier and TypeMethodDescriptionReturns a vertex separator separator.longMethods inherited from class org.graph4j.vsp.VertexSeparatorBase
maxShoreSizeMethods inherited from class org.graph4j.SimpleGraphAlgorithm
getGraphMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graph4j.vsp.VertexSeparatorAlgorithm
getGraph
-
Constructor Details
-
BacktrackVertexSeparator
-
BacktrackVertexSeparator
-
-
Method Details
-
getSeparator
Description copied from interface:VertexSeparatorAlgorithmReturns a vertex separator separator.- Specified by:
getSeparatorin interfaceVertexSeparatorAlgorithm- Specified by:
getSeparatorin classVertexSeparatorBase- Returns:
- a vertex separator set.
-
nodesExplored
public long nodesExplored()- Returns:
- the number of nodes explored during the search.
-