de.aitools.aq.graph
Class UndirectedGraph

java.lang.Object
  extended by de.aitools.aq.graph.UndirectedGraph
All Implemented Interfaces:
Graph

public class UndirectedGraph
extends java.lang.Object
implements Graph

Version:
$Id: UndirectedGraph.java,v 1.3 2011/08/24 08:25:28 gollub Exp $
Author:
tim.gollub@uni-weimar.de

Constructor Summary
UndirectedGraph(int size)
           
UndirectedGraph(Vector[] adjacencyMatrix)
           
 
Method Summary
 Vector getAdjacentNodes(int node)
           
 int getEdgeCount()
           
 double getEdgeWeight(int fromNode, int toNode)
           
 double getMass()
           
 double getMass(int[] nodes)
           
 int getNodeCount()
           
 void setEdge(int fromNode, int toNode, double weight)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UndirectedGraph

public UndirectedGraph(int size)

UndirectedGraph

public UndirectedGraph(Vector[] adjacencyMatrix)
Method Detail

getAdjacentNodes

public Vector getAdjacentNodes(int node)
Specified by:
getAdjacentNodes in interface Graph

getEdgeCount

public int getEdgeCount()
Specified by:
getEdgeCount in interface Graph

getEdgeWeight

public double getEdgeWeight(int fromNode,
                            int toNode)
Specified by:
getEdgeWeight in interface Graph

getMass

public double getMass()
Specified by:
getMass in interface Graph

getMass

public double getMass(int[] nodes)
Specified by:
getMass in interface Graph

getNodeCount

public int getNodeCount()
Specified by:
getNodeCount in interface Graph

setEdge

public void setEdge(int fromNode,
                    int toNode,
                    double weight)
Specified by:
setEdge in interface Graph