scpsolver.graph
Class GraphMiner

java.lang.Object
  extended by scpsolver.graph.GraphMiner

public class GraphMiner
extends java.lang.Object

Building a graph out of a SparseMatrix

Author:
Sebastian Rheinnecker

Constructor Summary
GraphMiner()
           
 
Method Summary
 Graph createRandomGraph(int nodecount)
          creates a random graph
 SparseMatrix createRandomMatrix(int rowcolCount)
          create quadratic random sparse matrix
static Graph getGraph(SparseMatrix matrix)
          reads the matrix as an adjacency matrix and produces a graph.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphMiner

public GraphMiner()
Method Detail

getGraph

public static Graph getGraph(SparseMatrix matrix)
reads the matrix as an adjacency matrix and produces a graph.

Parameters:
matrix - TODO
Returns:

createRandomGraph

public Graph createRandomGraph(int nodecount)
creates a random graph

Parameters:
nodecount - - the number of nodes in the graph
Returns:
a random graph

createRandomMatrix

public SparseMatrix createRandomMatrix(int rowcolCount)
create quadratic random sparse matrix

Parameters:
row - and col count