public class DefaultGraphFactory<N,E> extends Object implements GraphFactory<N,E>
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultGraphFactory.MutableEdge<N,E>
Дуга
|
| Constructor and Description |
|---|
DefaultGraphFactory() |
| Modifier and Type | Method and Description |
|---|---|
Edge<N,E> |
createEdge(N a,
N b,
E e)
Создание ребра с вершинами
|
List<Edge<N,E>> |
createEdgePairs()
Создание списка ребр с вершинами
|
List<E> |
createEdges()
Создание списка ребр
|
List<N> |
createNodes()
Создаение списка вершин
|
public Edge<N,E> createEdge(N a, N b, E e)
GraphFactorycreateEdge in interface GraphFactory<N,E>a - Вершина Аb - Вершина Бe - Ребро между вершинами А и Бpublic List<Edge<N,E>> createEdgePairs()
GraphFactorycreateEdgePairs in interface GraphFactory<N,E>public List<N> createNodes()
GraphFactorycreateNodes in interface GraphFactory<N,E>public List<E> createEdges()
GraphFactorycreateEdges in interface GraphFactory<N,E>Copyright © 2017. All rights reserved.