SE450
:
Add New Edge
[52/63]
First check if mouse was pressed inside existing node
public Node findNode(Point2D p)
{
for (int i = 0; i < nodes.size(); i++)
{
Node n = (Node) nodes.get(i);
if (n.contains(p)) return n;
}
return null;
}