Skip to content
YosefTwito edited this page Jan 1, 2020 · 8 revisions
  • This class represents the set of operations applicable on a
  • directional edge(src,dest) in a (directional) weighted graph.
  • @authors YosefTwito and EldarTakach

The edge:

edge's parameters:

  1. int src - the source-node of this edge.
  2. int dest - the destination-node of this edge
  3. int tag - assistant tag for functions.
  4. double weight - the weight of the edge.
  5. String info - save extra info (might be empty).

The functions of the edge are:

Getters/Setters :

  • to adjust an existing edge (src, dest and weight cannot be changed).

Constructors:

  1. edge(int src, int dest, double w).
  2. edge(edge o). (copy, for some functions return value).
Clone this wiki locally