de.uni_leipzig.bf.cluster
Class ClusterGraph
java.lang.Object
de.uni_leipzig.bf.cluster.ClusterGraph
public class ClusterGraph
- extends java.lang.Object
- Author:
- an
-
-
Field Summary |
(package private) java.util.HashMap<java.lang.String,java.lang.Integer> |
index
|
protected semiosys.colt.xtend.SparseSuperDoubleMatrix2D |
matrix
|
(package private) java.util.HashMap<java.lang.Integer,java.lang.String> |
reverseIndex
|
int |
size
|
Method Summary |
double |
getEdgeWeight(java.lang.Integer source,
java.lang.Integer target)
|
java.util.TreeSet<java.lang.Integer> |
getNeighbours(int index)
|
double |
getNumberOfNeighbours(java.lang.Integer index)
|
boolean |
initialize(java.lang.String file,
java.lang.String seperator)
We ignore edges with the same node as source and target. |
static void |
main(java.lang.String[] args)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
index
java.util.HashMap<java.lang.String,java.lang.Integer> index
matrix
protected semiosys.colt.xtend.SparseSuperDoubleMatrix2D matrix
reverseIndex
java.util.HashMap<java.lang.Integer,java.lang.String> reverseIndex
size
public int size
ClusterGraph
public ClusterGraph()
getEdgeWeight
public double getEdgeWeight(java.lang.Integer source,
java.lang.Integer target)
getNeighbours
public java.util.TreeSet<java.lang.Integer> getNeighbours(int index)
getNumberOfNeighbours
public double getNumberOfNeighbours(java.lang.Integer index)
initialize
public boolean initialize(java.lang.String file,
java.lang.String seperator)
- We ignore edges with the same node as source and target.
main
public static void main(java.lang.String[] args)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object