Untitled
unknown
plain_text
2 years ago
398 B
9
Indexable
public void exercice3(){
/*
- DFS -> Définis la liste des sommets pour lequels il n'y a pas de successeur (Donc a colorier)
-> Définis pour chaque sommets la liste des R[u]
*/
ArrayList<Integer> toColor = new ArrayList<>();
HashMap<Integer, ArrayList<Integer>> r = new HashMap<>();
for (int i = 0; i < this.n; i++) {
r.put(i, new ArrayList<Integer>());
}
}Editor is loading...