de.aitools.dm.clustering.algorithms.majorclust
Class UndirectedGraph

java.lang.Object
  extended by 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:
johannes.kiesel@uni-weimar.de

Field Summary
static boolean VERBOSE
           
 
Constructor Summary
UndirectedGraph(java.io.File graphFile)
           
UndirectedGraph(java.lang.String graphFile)
           
 
Method Summary
 int[] getAdjacentIndices(int index)
           
 double[] getAdjacentWeights(int index)
           
 double getWeight(int a, int b)
           
 double getWeightSorted(int lesser, int greater)
           
static void main(java.lang.String[] args)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VERBOSE

public static boolean VERBOSE
Constructor Detail

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
Method Detail

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