Package org.drip.graph.mst
Class CompleteRandomGraphEnsemble<V>
java.lang.Object
org.drip.graph.mst.CompleteRandomGraphEnsemble<V>
public class CompleteRandomGraphEnsemble<V>
extends java.lang.Object
CompleteRandomGraphEnsemble implements the Ensemble of Complete Random Graphs. The References are:
- Bader, D. A., and G. Cong (2006): Fast Shared Memory Algorithms for computing the Minimum Spanning Forests of Sparse Graphs Journal of Parallel and Distributed Computing 66 (11) 1366-1378
- Chazelle, B. (2000): A Minimum Spanning Tree Algorithm with Inverse-Ackerman Type Complexity Journal of the Association for Computing Machinery 47 (6) 1028-1047
- Karger, D. R., P. N. Klein, and R. E. Tarjan (1995): A Randomized Linear-Time Algorithm to find Minimum Spanning Trees Journal of the Association for Computing Machinery 42 (2) 321-328
- Pettie, S., and V. Ramachandran (2002): An Optimal Minimum Spanning Tree Algorithm Journal of the ACM 49 (1) 16-34
- Wikipedia (2020): Minimum Spanning Tree https://en.wikipedia.org/wiki/Minimum_spanning_tree
- Module = Computational Core Module
- Library = Graph Algorithm Library
- Project = Graph Optimization and Tree Construction Algorithms
- Package = Agnostic Minimum Spanning Tree Properties
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description CompleteRandomGraphEnsemble(CompleteRandomGraph<?> completeRandomGraph, OptimalSpanningForestGenerator minimumSpanningForestGenerator)CompleteRandomGraphEnsemble Constructor -
Method Summary
Modifier and Type Method Description static <V> CompleteRandomGraphEnsemble<?>Boruvka(CompleteRandomGraph<?> completeRandomGraph)Construct the Boruvka based CompleteRandomGraphEnsembleCompleteRandomGraph<?>completeRandomGraph()Retrieve the Underlying Complete Random Graphstatic <V> CompleteRandomGraphEnsemble<?>Kruskal(CompleteRandomGraph<?> completeRandomGraph)Construct the Kruskal based CompleteRandomGraphEnsembledoublelength()Compute the Length of the Minimum Spanning ForestOptimalSpanningForestGeneratorminimumSpanningForestGenerator()Retrieve the Minimum Spanning Forest Generatorstatic <V> CompleteRandomGraphEnsemble<?>Prim(CompleteRandomGraph<?> completeRandomGraph)Construct the Prim based CompleteRandomGraphEnsemblestatic <V> CompleteRandomGraphEnsemble<?>ReverseDelete(CompleteRandomGraph<?> completeRandomGraph)Construct the Reverse-Delete based CompleteRandomGraphEnsembleMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CompleteRandomGraphEnsemble
public CompleteRandomGraphEnsemble(CompleteRandomGraph<?> completeRandomGraph, OptimalSpanningForestGenerator minimumSpanningForestGenerator) throws java.lang.ExceptionCompleteRandomGraphEnsemble Constructor- Parameters:
completeRandomGraph- The Underlying Complete Random GraphminimumSpanningForestGenerator- The Minimum Spanning Forest Generator- Throws:
java.lang.Exception- Thrown if the Inputs are Invalid
-
-
Method Details
-
Prim
Construct the Prim based CompleteRandomGraphEnsemble- Parameters:
completeRandomGraph- The Complete Random Graph- Returns:
- The CompleteRandomGraphEnsemble Instance
-
Kruskal
public static <V> CompleteRandomGraphEnsemble<?> Kruskal(CompleteRandomGraph<?> completeRandomGraph)Construct the Kruskal based CompleteRandomGraphEnsemble- Parameters:
completeRandomGraph- The Complete Random Graph- Returns:
- The CompleteRandomGraphEnsemble Instance
-
ReverseDelete
public static <V> CompleteRandomGraphEnsemble<?> ReverseDelete(CompleteRandomGraph<?> completeRandomGraph)Construct the Reverse-Delete based CompleteRandomGraphEnsemble- Parameters:
completeRandomGraph- The Complete Random Graph- Returns:
- The CompleteRandomGraphEnsemble Instance
-
Boruvka
public static <V> CompleteRandomGraphEnsemble<?> Boruvka(CompleteRandomGraph<?> completeRandomGraph)Construct the Boruvka based CompleteRandomGraphEnsemble- Parameters:
completeRandomGraph- The Complete Random Graph- Returns:
- The CompleteRandomGraphEnsemble Instance
-
completeRandomGraph
Retrieve the Underlying Complete Random Graph- Returns:
- The Underlying Complete Random Graph
-
minimumSpanningForestGenerator
Retrieve the Minimum Spanning Forest Generator- Returns:
- The Minimum Spanning Forest Generator
-
length
public double length() throws java.lang.ExceptionCompute the Length of the Minimum Spanning Forest- Returns:
- Length of the Minimum Spanning Forest
- Throws:
java.lang.Exception- Thrown if the Length of the Minimum Spanning Forest cannot be calculated
-