Fix generics for HashMutableDirectedGraph