- All Superinterfaces:
IndexedBidiGraph,IndexedDirectedGraph
- All Known Implementing Classes:
ChunkedMutableIndexedBidiGraph,MutableIntAttributed16BitIndexedBidiGraph
MutableIndexedBidiGraph.
- Author:
- Werner Randelshofer
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddArrowAsInt(int v, int u) Adds an arrow from vertex 'v' to vertex 'u' with arrow data 0.voidaddArrowAsInt(int v, int u, int data) Adds an arrow from vertex 'v' to vertex 'u'.voidAdds a vertex to the graph.voidaddVertexAsInt(int v) Adds a vertex at the specified index to the graph.voidremoveAllNextAsInt(int v) Removes all arrows starting at the specified vertex.voidremoveAllPrevAsInt(int v) Removes all arrows ending at the specified vertex.default voidremoveArrowAsInt(int v, int u) Removes an arrow from vertex 'v' to vertex 'u'voidremoveNextAsInt(int v, int index) Removes the i-th arrow starting at vertex 'v'voidremovePrevAsInt(int v, int index) Removes the i-th arrow ending at vertex 'v'voidremoveVertexAsInt(int v) Removes vertex 'v'Methods inherited from interface org.jhotdraw8.graph.IndexedBidiGraph
findIndexOfPrevAsInt, getPrevArrowAsInt, getPrevAsInt, getPrevCount, isPrevAsInt, prevVerticesEnumeratorMethods inherited from interface org.jhotdraw8.graph.IndexedDirectedGraph
findIndexOfNextAsInt, getArrowCount, getNextArrowAsInt, getNextAsInt, getNextCount, getVertexCount, isNextAsInt, nextVerticesEnumerator
-
Method Details
-
addArrowAsInt
default void addArrowAsInt(int v, int u) Adds an arrow from vertex 'v' to vertex 'u' with arrow data 0.- Parameters:
v- index of vertex 'v'u- index of vertex 'u'
-
addArrowAsInt
void addArrowAsInt(int v, int u, int data) Adds an arrow from vertex 'v' to vertex 'u'.- Parameters:
v- index of vertex 'v'u- index of vertex 'u'data- the arrow data
-
addVertexAsInt
void addVertexAsInt()Adds a vertex to the graph. -
addVertexAsInt
void addVertexAsInt(int v) Adds a vertex at the specified index to the graph.- Parameters:
v- index of vertex 'v'
-
removeAllPrevAsInt
void removeAllPrevAsInt(int v) Removes all arrows ending at the specified vertex.- Parameters:
v- index of vertex 'v'
-
removeAllNextAsInt
void removeAllNextAsInt(int v) Removes all arrows starting at the specified vertex.- Parameters:
v- index of vertex 'v'
-
removeArrowAsInt
default void removeArrowAsInt(int v, int u) Removes an arrow from vertex 'v' to vertex 'u'- Parameters:
v- index of vertex 'v'u- index of vertex 'u'- Throws:
NoSuchElementException- if there is no such arrow
-
removeNextAsInt
void removeNextAsInt(int v, int index) Removes the i-th arrow starting at vertex 'v'- Parameters:
v- index of vertex 'v'index- the index of the arrow starting at 'v'- Throws:
NoSuchElementException- if there is no such arrow
-
removePrevAsInt
void removePrevAsInt(int v, int index) Removes the i-th arrow ending at vertex 'v'- Parameters:
v- index of vertex 'v'index- the index of the arrow ending at 'v'- Throws:
NoSuchElementException- if there is no such arrow
-
removeVertexAsInt
void removeVertexAsInt(int v) Removes vertex 'v'- Parameters:
v- index of vertex 'v'
-