Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
398 B
1
Indexable
Never
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>());
		}
		
	}