Class GraphBuilder


  • public class GraphBuilder
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addEdge​(int from, int to)  
      Graph build()  
      void clear()  
      void removeEdge​(int from, int to)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GraphBuilder

        public GraphBuilder()
      • GraphBuilder

        public GraphBuilder​(int sz)
    • Method Detail

      • clear

        public void clear()
      • addEdge

        public void addEdge​(int from,
                            int to)
      • removeEdge

        public void removeEdge​(int from,
                               int to)
      • build

        public Graph build()