Class Vertex<R>


  • public class Vertex<R>
    extends Object
    A graph vertex - stores its representation, neighbours, start and end time in (D|B)FS.
    • Constructor Detail

      • Vertex

        public Vertex​(R representation)
    • Method Detail

      • getRepresentation

        public R getRepresentation()
      • getNeighbours

        public List<Vertex<R>> getNeighbours()
      • addNeighbour

        public void addNeighbour​(Vertex<R> n)
      • getStartTime

        public int getStartTime()
      • setStartTime

        public void setStartTime​(int startTime)
      • getEndTime

        public int getEndTime()
      • setEndTime

        public void setEndTime​(int endTime)