Class DefaultGraphFactory.MutableEdge<N,​E>

java.lang.Object
xyz.cofe.collection.graph.DefaultGraphFactory.MutableEdge<N,​E>
Type Parameters:
N - Тип вершины
E - Тип ребра
All Implemented Interfaces:
java.io.Serializable, Edge<N,​E>
Enclosing class:
DefaultGraphFactory<N,​E>

public static class DefaultGraphFactory.MutableEdge<N,​E>
extends java.lang.Object
implements Edge<N,​E>, java.io.Serializable
Дуга
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    MutableEdge()  
    MutableEdge​(N a, N b, E e)  
  • Method Summary

    Modifier and Type Method Description
    E getEdge()
    Возвращает ребро между вершинами А и Б
    N getNodeA()
    Возвращает вершину А
    N getNodeB()
    Возвращает вершину Б
    void setEdge​(E e)  
    void setNodeA​(N a)  
    void setNodeB​(N b)  

    Methods inherited from class java.lang.Object

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

  • Method Details

    • 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)