Class DefaultGraphFactory<N,​E>

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

public class DefaultGraphFactory<N,​E>
extends java.lang.Object
implements GraphFactory<N,​E>
Фабрика классов графа
Author:
GoCha
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  DefaultGraphFactory.MutableEdge<N,​E>
    Дуга
  • Constructor Summary

    Constructors 
    Constructor Description
    DefaultGraphFactory()  
  • Method Summary

    Modifier and Type Method Description
    Edge<N,​E> createEdge​(N a, N b, E e)
    Создание ребра с вершинами
    java.util.List<Edge<N,​E>> createEdgePairs()
    Создание списка ребр с вершинами
    java.util.List<E> createEdges()
    Создание списка ребр
    java.util.List<N> createNodes()
    Создаение списка вершин

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface xyz.cofe.collection.graph.GraphFactory

    readWriteLocks, readWriteLocks, readWriteLocks
  • Constructor Details

  • Method Details

    • createEdge

      public Edge<N,​E> createEdge​(N a, N b, E e)
      Description copied from interface: GraphFactory
      Создание ребра с вершинами
      Specified by:
      createEdge in interface GraphFactory<N,​E>
      Parameters:
      a - Вершина А
      b - Вершина Б
      e - Ребро между вершинами А и Б
      Returns:
      Ребро
    • createEdgePairs

      public java.util.List<Edge<N,​E>> createEdgePairs()
      Description copied from interface: GraphFactory
      Создание списка ребр с вершинами
      Specified by:
      createEdgePairs in interface GraphFactory<N,​E>
      Returns:
      Список ребр
    • createNodes

      public java.util.List<N> createNodes()
      Description copied from interface: GraphFactory
      Создаение списка вершин
      Specified by:
      createNodes in interface GraphFactory<N,​E>
      Returns:
      Список вершин
    • createEdges

      public java.util.List<E> createEdges()
      Description copied from interface: GraphFactory
      Создание списка ребр
      Specified by:
      createEdges in interface GraphFactory<N,​E>
      Returns:
      Список ребр