Class FullyConnectedComponentSearcher
- java.lang.Object
-
- org.apache.ignite.internal.cluster.graph.FullyConnectedComponentSearcher
-
public class FullyConnectedComponentSearcher extends Object
Class to find (possibly) largest fully-connected component (also can be called as complete subgraph) in graph. This problem is also known as Clique problem which is NP-complete. For small number of nodes simple brute-force algorithm is used which finds such component guaranteed. For large number of nodes some sort of greedy heuristic is used which works well for real-life scenarios but doesn't guarantee to find largest component, however very close to ideal result.
-
-
Constructor Summary
Constructors Constructor Description FullyConnectedComponentSearcher(BitSet[] connections)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BitSetfindLargest(BitSet where)Find largest fully connected component from presented set of the nodeswhere.
-
-
-
Constructor Detail
-
FullyConnectedComponentSearcher
public FullyConnectedComponentSearcher(BitSet[] connections)
Constructor.- Parameters:
connections- Adjacency matrix.
-
-