Path.Direction| Modifier and Type | Field and Description |
|---|---|
protected Path.Direction |
direction
Описывает направление движения
|
| Constructor and Description |
|---|
AbstractPath() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(N a,
N b)
Проверяет содержит ли путь ребро из вершины A в B
|
Path.Direction |
getDirection()
Описывает направление движения
|
Edge<N,E> |
getLastEdge()
Возвращает последенее ребро в пути (index=size-1)
|
N |
getLastNode()
Возвращает последнюю вершину в пути, согласно направлению (AB -> B / BA -> A)
|
void |
setDirection(Path.Direction d)
Указывает направление движения
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streamprotected Path.Direction direction
public Edge<N,E> getLastEdge()
PathgetLastEdge in interface Path<N,E>public N getLastNode()
PathgetLastNode in interface Path<N,E>public void setDirection(Path.Direction d)
d - Направлениеpublic Path.Direction getDirection()
PathgetDirection in interface Path<N,E>Copyright © 2017. All rights reserved.