de.aitools.iv.graphdrawing.datastructures.graph
Interface WeightedGraph

All Superinterfaces:
java.lang.Cloneable, java.io.Serializable

public interface WeightedGraph
extends java.io.Serializable, java.lang.Cloneable


Method Summary
 int addNode()
           
 java.lang.Object clone()
           
 java.lang.Object compute(GraphProcedure proc)
           
 boolean containsEdge(int fromNodeId, int toNodeId)
           
 boolean containsNode(int nodeId)
           
 int[] getAdjacentNodes(int nodeId)
           
 int getEdgeCount()
           
 double getEdgeWeight(int fromNodeId, int toNodeId)
           
 double getMass()
           
 double getMass(int[] nodeIds)
           
 int getNodeCount()
           
 int[] getNodes()
           
 void removeEdge(int fromNodeId, int toNodeId)
           
 void removeNode(int nodeId)
           
 void setEdge(int fromNodeId, int toNodeId, double weight)
           
 

Method Detail

clone

java.lang.Object clone()

addNode

int addNode()

containsNode

boolean containsNode(int nodeId)

getNodes

int[] getNodes()

getAdjacentNodes

int[] getAdjacentNodes(int nodeId)

removeNode

void removeNode(int nodeId)

getNodeCount

int getNodeCount()

setEdge

void setEdge(int fromNodeId,
             int toNodeId,
             double weight)

containsEdge

boolean containsEdge(int fromNodeId,
                     int toNodeId)

getEdgeWeight

double getEdgeWeight(int fromNodeId,
                     int toNodeId)

removeEdge

void removeEdge(int fromNodeId,
                int toNodeId)

getEdgeCount

int getEdgeCount()

getMass

double getMass()

getMass

double getMass(int[] nodeIds)

compute

java.lang.Object compute(GraphProcedure proc)