node1 and node2to the graph. Graph does not accept parallel edges. Fails if a such edge already exists in the graph.
@param node1 the first node
@param node2 the second node
@return true if add is successful, false otherwise
@throws IllegalArgumentException if source or targetis null or not legal nodes for this edge
@throws IllegalMonitorStateException if the current thread is holding a read lock
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |