Generics in HashMutableDirectedGraph