edge to the graph. Graph does not accept parallel edges. Fails if edge is already in the graph.
@param edge the edge to add
@return true if add is successful, false otherwise
@throws IllegalArgumentException if edge is null,or if nodes are not legal nodes for this edge, or if edge is directed when the graph is undirected, or if edge is undirected when the graph is directed,
@throws IllegalMonitorStateException if the current thread is holding a read lock
| |
| |
| |