Remove some unused code

Also: calculate all __hash__() values on the fly (affects Edge objects)