Package Graph

## Class UnorientedGraph<T>

- java.lang.Object
- - Graph.Graph<T>
  - - Graph.UnorientedGraph<T>

-     public class UnorientedGraph<T>
      extends Graph<T>

- - ### Field Summary

    - ### Fields inherited from class Graph.Graph

      `adjList, vertices`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `UnorientedGraph()` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | `addEdge​(T u, T v)` | Ajout d'une arête
    `int` | `color()` | Algorithme glouton de coloration
    `int` | `getColor​(T u)` | Getter de la couleur d'un sommet
    `java.util.ArrayList<T>` | `getNeighbors​(T u)` | Getter des voisins d'un sommet

    - ### Methods inherited from class Graph.Graph

      `addVertex, hasEdge, hasVertex, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### UnorientedGraph

          public UnorientedGraph()

  - ### Method Detail

    - #### addEdge

          public void addEdge​(T u,
                              T v)

      Ajout d'une arête
      Specified by:
        `addEdge` in class `Graph<T>`
      Parameters:
        `u` - sommet
        `v` - sommet

    - #### getNeighbors

          public java.util.ArrayList<T> getNeighbors​(T u)

      Getter des voisins d'un sommet
      Parameters:
        `u` - sommet
      Returns:
        les voisins de u

    - #### getColor

          public int getColor​(T u)

      Getter de la couleur d'un sommet
      Parameters:
        `u` - sommet
      Returns:
        int couleur

    - #### color

          public int color()

      Algorithme glouton de coloration
      Returns:
        int nombre de couleurs utilisées