abstract classes and initial implementation for graph representation as a graph
[aco.git] / si / ant / graph / Graph.java
blobe466040a6db36a12fd0ab303ebbcd4fd1e23c305
1 package si.ant.graph;
3 import java.util.Vector;
5 public abstract class Graph {
7 public abstract void setPheromone(Edge e, Pheromone p);
8 public abstract Pheromone getPheromone(Edge e);
10 public abstract void setEdgeDist(Edge e, Distance d);
11 public abstract Distance getEdgeDist(Edge e);
13 public abstract void setEdgeWeigth(Edge e, Weigth w);
14 public abstract Weigth getEdgeWeigth(Edge e);
16 public abstract Node[] getNodes(Edge e);
17 public abstract Vector<ArrayNode> getNeighbours(Node n);
19 public abstract int getNumNodes();