- 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 Object implements GraphFactory<N,E>
Фабрика классов графа- Author:
- GoCha
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDefaultGraphFactory.MutableEdge<N,E>Дуга
-
Constructor Summary
Constructors Constructor Description DefaultGraphFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Edge<N,E>createEdge(N a, N b, E e)Создание ребра с вершинамиList<Edge<N,E>>createEdgePairs()Создание списка ребр с вершинамиList<E>createEdges()Создание списка ребр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
-
-
-
-
Method Detail
-
createEdge
public Edge<N,E> createEdge(N a, N b, E e)
Description copied from interface:GraphFactoryСоздание ребра с вершинами- Specified by:
createEdgein interfaceGraphFactory<N,E>- Parameters:
a- Вершина Аb- Вершина Бe- Ребро между вершинами А и Б- Returns:
- Ребро
-
createEdgePairs
public List<Edge<N,E>> createEdgePairs()
Description copied from interface:GraphFactoryСоздание списка ребр с вершинами- Specified by:
createEdgePairsin interfaceGraphFactory<N,E>- Returns:
- Список ребр
-
createNodes
public List<N> createNodes()
Description copied from interface:GraphFactoryСоздаение списка вершин- Specified by:
createNodesin interfaceGraphFactory<N,E>- Returns:
- Список вершин
-
createEdges
public List<E> createEdges()
Description copied from interface:GraphFactoryСоздание списка ребр- Specified by:
createEdgesin interfaceGraphFactory<N,E>- Returns:
- Список ребр
-
-