de.aitools.dm.clustering.algorithms.majorclust
Class UndirectedGraph
java.lang.Object
de.aitools.dm.clustering.algorithms.majorclust.UndirectedGraph
public final class UndirectedGraph
- extends java.lang.Object
- Version:
- $Id: UndirectedGraph.java,v 1.1 2012/04/23 14:03:19 hoppe Exp $
- Author:
- [email protected]
Field Summary |
static boolean |
VERBOSE
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
VERBOSE
public static boolean VERBOSE
UndirectedGraph
public UndirectedGraph(java.lang.String graphFile)
throws java.lang.IllegalArgumentException,
java.io.IOException,
java.text.ParseException
- Throws:
java.lang.IllegalArgumentException
java.io.IOException
java.text.ParseException
UndirectedGraph
public UndirectedGraph(java.io.File graphFile)
throws java.lang.IllegalArgumentException,
java.io.IOException,
java.text.ParseException
- Throws:
java.lang.IllegalArgumentException
java.io.IOException
java.text.ParseException
size
public int size()
getAdjacentIndices
public int[] getAdjacentIndices(int index)
getAdjacentWeights
public double[] getAdjacentWeights(int index)
getWeight
public double getWeight(int a,
int b)
getWeightSorted
public double getWeightSorted(int lesser,
int greater)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
main
public static void main(java.lang.String[] args)
throws java.lang.IllegalArgumentException,
java.io.IOException,
java.text.ParseException
- Throws:
java.lang.IllegalArgumentException
java.io.IOException
java.text.ParseException