Class DefaultGraphFactory.MutableEdge<N,​E>

    • Constructor Detail

      • MutableEdge

        public MutableEdge()
      • MutableEdge

        public MutableEdge​(N a,
                           N b,
                           E e)
    • Method Detail

      • getNodeA

        public N getNodeA()
        Description copied from interface: Edge
        Возвращает вершину А
        Specified by:
        getNodeA in interface Edge<N,​E>
        Returns:
        Вершина А
      • setNodeA

        public void setNodeA​(N a)
      • getNodeB

        public N getNodeB()
        Description copied from interface: Edge
        Возвращает вершину Б
        Specified by:
        getNodeB in interface Edge<N,​E>
        Returns:
        Вершина Б
      • setNodeB

        public void setNodeB​(N b)
      • getEdge

        public E getEdge()
        Description copied from interface: Edge
        Возвращает ребро между вершинами А и Б
        Specified by:
        getEdge in interface Edge<N,​E>
        Returns:
        Ребро
      • setEdge

        public void setEdge​(E e)