fin tp6
This commit is contained in:
parent
6afe7ae54d
commit
e4727f986b
17
src/TP6/MainTP6.java
Normal file
17
src/TP6/MainTP6.java
Normal 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
6
src/TP6/TP6.md
Normal 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 ````
|
Loading…
x
Reference in New Issue
Block a user