|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsims.mar.Graphe
public class Graphe
Structure de donnée Graphe Un graphe à une ensemble de Sommet et d'Arete
Constructor Summary | |
---|---|
Graphe()
|
Method Summary | |
---|---|
void |
ajouterArete(Arete arete)
Ajoute une arete au graphe |
void |
ajouterSommet(Sommet sommet)
Ajoute un sommet au graphe |
void |
clear()
supprime tous les sommets et tous les aretes |
java.util.Collection |
getSommets()
|
java.util.Collection |
getSuccesseurs(Sommet sommet,
int type)
Creer une collection des successeur d'un sommet |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Graphe()
Method Detail |
---|
public java.util.Collection getSuccesseurs(Sommet sommet, int type)
sommet
- Sommet dont on veut obtenir les successeurstype
- Type d'arete qui relie les successers
public java.util.Collection getSommets()
public void ajouterSommet(Sommet sommet)
sommet
- Sommet à ajouterpublic void clear()
public void ajouterArete(Arete arete)
arete
- Arete à ajouter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |