Adds explicit hash and equal_to support for UnderlyingGraph shared_ptrs