implementation basique graphe.java