This commit is contained in:
JunkJumper 2020-10-14 13:31:50 +02:00
parent 6afe7ae54d
commit e4727f986b
2 changed files with 23 additions and 0 deletions

17
src/TP6/MainTP6.java Normal file
View File

@ -0,0 +1,17 @@
package TP6;
public class MainTP6 {
public static void main(String[] args) {
Graph<Integer> g = new Graph<>(true);
final String key1 = "v";
final String key2 = "*";
g.addAttributeOnEdge(67, 21, key1, 93);
g.addAttributeOnEdge(21, 67, key1, 76);
g.addAttributeOnEdge(78, 21, key1, 20);
g.addAttributeOnEdge(78, 21, key2, Boolean.TRUE);
g.addAttributeOnEdge(21, 21, key2, 58);
System.out.println(g.toString());
}
}

6
src/TP6/TP6.md Normal file
View File

@ -0,0 +1,6 @@
# TP6 - Graphe
## Exercice 1
1. Entre ``C`` et ``X``, le plus court chemin est $\infty$
2. Entre ``Q`` et ``F``, le plus court chemin est ````