private void addSingleEdgeInternal(Node<T> node, GraphObject<T> neighbour)
{
Graph<T> g = neighbour.getGraph();
if (g == null)
throw new IllegalArgumentException("The neighbour object is not in a graph.");
crashes. adding this to the first block would fix this, if the crash is not intended behaviour.
This code is executed if both don't have a graph set, indicating that the method should be working with 2 ungraphed GraphObjects
but this
crashes. adding this to the first block would fix this, if the crash is not intended behaviour.