-
Notifications
You must be signed in to change notification settings - Fork 1
edge
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
- int src - the source-node of this edge.
- int dest - the destination-node of this edge
- int tag - assistant tag for functions.
- double weight - the weight of the edge.
- String info - save extra info (might be empty).
Getters/Setters :
- to adjust an existing edge (src, dest and weight cannot be changed).
Constructors:
- edge(int src, int dest, double w).
- edge(edge o). (copy, for some functions return value).