Class Graph<V extends IVertex>

  • Type Parameters:
    V - -- vertex class

    public class Graph<V extends IVertex>
    extends Object
    Likely this class represents a graph of V
    • Constructor Detail

      • Graph

        public Graph()
    • Method Detail

      • add

        public void add​(@NotNull
                        V vertex)
        adds the vertex and its neighbours to the graph
      • getNVertexes

        public int getNVertexes()
        return the number of vertices in the graph
      • getData

        public Set<V> getData()