use stl hashing support for graphid

exactly what the title says