netkit.util
Class GraphMetrics.AdjacencyMatrix

java.lang.Object
  extended by netkit.util.GraphMetrics.AdjacencyMatrix
Enclosing class:
GraphMetrics

public final class GraphMetrics.AdjacencyMatrix
extends java.lang.Object

This is a wrapper class for the COLT DoubleMatrix2D object such that NetKit does not require the colt library in its classpath. Otherwise, any instantiation of GraphMetrics would require that the COLT library is in the classpath regardless of whether the adjacency matrix is needed.


Field Summary
 DoubleMatrix2D coltMatrix
           
 
Constructor Summary
GraphMetrics.AdjacencyMatrix(boolean unweighted)
          Create a wrapper for the (possibly unweighted) adjacency matrix of this graph in the COLT sparseMatrix2D format.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

coltMatrix

public final DoubleMatrix2D coltMatrix
Constructor Detail

GraphMetrics.AdjacencyMatrix

public GraphMetrics.AdjacencyMatrix(boolean unweighted)
Create a wrapper for the (possibly unweighted) adjacency matrix of this graph in the COLT sparseMatrix2D format.