Package org.drip.graph.core
Class NDimensionalHypercube<V>
java.lang.Object
org.drip.graph.core.Network<V>
org.drip.graph.core.Directed<V>
org.drip.graph.core.NDimensionalHypercube<V>
public class NDimensionalHypercube<V> extends Directed<V>
NDimensionalHypercube implements an n-dimensional Hyper-cube Graph. The References are:
- Bollobas, B. (1998): Modern Graph Theory Springer
- Eppstein, D. (1999): Spanning Trees and Spanners https://www.ics.uci.edu/~eppstein/pubs/Epp-TR-96-16.pdf
- Gross, J. L., and J. Yellen (2005): Graph Theory and its Applications Springer
- Kocay, W., and D. L. Kreher (2004): Graphs, Algorithms, and Optimizations CRC Press
- Wikipedia (2020): Spanning Tree https://en.wikipedia.org/wiki/Spanning_tree
- Module = Computational Core Module
- Library = Graph Algorithm Library
- Project = Graph Optimization and Tree Construction Algorithms
- Package = Vertexes, Edges, Trees, and Graphs
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description NDimensionalHypercube()NDimensionalHypercube Constructor -
Method Summary
Modifier and Type Method Description booleancontainsCycle()Indicate if the Graph contains a CyclebooleanisComplete()Indicate if the Graph is CompletebooleanisConnected()Indicate if the Graph is ConnectedbooleanisTree()Indicate if the Graph is a TreedoublespanningTreeCount()Retrieve the Count of the Spanning Treesinttype()Retrieve the Graph TypeMethods inherited from class org.drip.graph.core.Directed
addGraph, areVertexesAdjacent, clone, fundamentalCycleEdgeSet, isCyclical, isDense, isTreeSpanning, kirchoffSpanningTreeCount, leafVertexNameList, Transpose, vertexDegreeMapMethods inherited from class org.drip.graph.core.Network
addBidirectionalEdge, addBidirectionalEdge, addEdge, addEdge, addVertex, addVertex, containsEdge, containsVertex, edgeCount, edgeMap, edgePriorityQueue, initialVertexName, isEdgeACycle, isEmpty, length, removeEdge, vertexCount, vertexMap, vertexNameSet, vertexValueMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
NDimensionalHypercube
public NDimensionalHypercube()NDimensionalHypercube Constructor
-
-
Method Details
-
isConnected
public boolean isConnected()Description copied from class:DirectedIndicate if the Graph is Connected- Overrides:
isConnectedin classDirected<V>- Returns:
- TRUE - The Graph is Connected
-
isTree
public boolean isTree()Description copied from class:DirectedIndicate if the Graph is a Tree -
isComplete
public boolean isComplete()Description copied from class:DirectedIndicate if the Graph is Complete- Overrides:
isCompletein classDirected<V>- Returns:
- TRUE - The Graph is Complete
-
containsCycle
public boolean containsCycle()Description copied from class:DirectedIndicate if the Graph contains a Cycle- Overrides:
containsCyclein classDirected<V>- Returns:
- TRUE - The Graph contains a Cycle
-
type
public int type()Description copied from class:DirectedRetrieve the Graph Type -
spanningTreeCount
public double spanningTreeCount()Description copied from class:DirectedRetrieve the Count of the Spanning Trees- Overrides:
spanningTreeCountin classDirected<V>- Returns:
- Count of the Spanning Trees
-