de.aitools.aq.graph
Class UndirectedGraph
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UndirectedGraph
public UndirectedGraph(int size)
UndirectedGraph
public UndirectedGraph(Vector[] adjacencyMatrix)
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