-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathArc.java
44 lines (37 loc) · 882 Bytes
/
Arc.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package graphe;
public class Arc {
private int flot;
private int capacite;
private Sommet sommetSource;
private Sommet sommetDestination;
public Arc(int flot, int capacite,Sommet sommetDestination) {
super();
this.flot = flot;
this.capacite = capacite;
this.sommetDestination = sommetDestination;
}
public int getFlot() {
return flot;
}
public void setFlot(int flot) {
this.flot = flot;
}
public int getCapacite() {
return capacite;
}
public void setCapacite(int capacite) {
this.capacite = capacite;
}
public Sommet getSommetDestination() {
return sommetDestination;
}
public void setSommetDestination(Sommet sommetDestination) {
this.sommetDestination = sommetDestination;
}
public Sommet getSommetSource() {
return sommetSource;
}
public void setSommetSource(Sommet sommetSource) {
this.sommetSource = sommetSource;
}
}