Class MatrixVertex

java.lang.Object
  |
  +--AbstractVertex
        |
        +--MatrixVertex
All Implemented Interfaces:
Vertex

class MatrixVertex
extends AbstractVertex

Implémentation d'un sommet pour les graphes par matrice d'adjacence


Field Summary
protected  int index
          Numéro du sommet
protected  java.lang.Object value
          Valeur du sommet
 
Constructor Summary
(package private) MatrixVertex(int index)
          Création d'un sommet à partir d'un numéro
(package private) MatrixVertex(int index, java.lang.Object value)
          Création d'un sommet à partir d'un numéro et d'une valeur
 
Method Summary
 int index()
          Retourne le numéro du sommet
 java.lang.String toString()
          Conversion en chaîne
 java.lang.Object value()
          Retourne la valeur du sommet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

index

protected int index
Numéro du sommet


value

protected java.lang.Object value
Valeur du sommet

Constructor Detail

MatrixVertex

MatrixVertex(int index,
             java.lang.Object value)
Création d'un sommet à partir d'un numéro et d'une valeur


MatrixVertex

MatrixVertex(int index)
Création d'un sommet à partir d'un numéro

Method Detail

index

public int index()
Retourne le numéro du sommet

Specified by:
index in interface Vertex

value

public java.lang.Object value()
Retourne la valeur du sommet

Specified by:
value in interface Vertex

toString

public java.lang.String toString()
Conversion en chaîne

Overrides:
toString in class java.lang.Object