graph structs impl gen:equal+hash to restore equal? comps and fix tests