fixed problem with the load graph functionality. Overwrote equals and
hash code on the node class.
It is now impossible to create an edge without a costs value.