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 classDefaultGraphFactory.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, waitMethods inherited from interface xyz.cofe.collection.graph.GraphFactory
readWriteLocks, readWriteLocks, readWriteLocks
-
Constructor Details
-
DefaultGraphFactory
public DefaultGraphFactory()
-
-
Method Details
-
createEdge
Description copied from interface:GraphFactoryСоздание ребра с вершинами- Specified by:
createEdgein interfaceGraphFactory<N,E>- Parameters:
a- Вершина Аb- Вершина Бe- Ребро между вершинами А и Б- Returns:
- Ребро
-
createEdgePairs
Description copied from interface:GraphFactoryСоздание списка ребр с вершинами- Specified by:
createEdgePairsin interfaceGraphFactory<N,E>- Returns:
- Список ребр
-
createNodes
Description copied from interface:GraphFactoryСоздаение списка вершин- Specified by:
createNodesin interfaceGraphFactory<N,E>- Returns:
- Список вершин
-
createEdges
Description copied from interface:GraphFactoryСоздание списка ребр- Specified by:
createEdgesin interfaceGraphFactory<N,E>- Returns:
- Список ребр
-