edge
from the graph. Fails if the edge doesn't exist.
@param edge the edge to remove
@return true if remove is successful, false otherwise
@throws IllegalArgumentException if edge
is null
or nodes not legal inthe graph
@throws IllegalMonitorStateException if the current thread is holding a read lock
This method is implicitly generic and returns something which extends Edge. The return type is the one of the left part of the assignment. For example, in the following call :
ExtendedEdge edge = graph.removeEdge(i);the method will return an ExtendedEdge edge. If no left part exists, method will just return an Edge. @param index The index of the edge to be removed. @return The removed edge @throws IndexOutOfBoundsException if the index is negative or greater than {@code getEdgeCount() - 1}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|