converted to a generic graph and passed compilation
modified a little bit in GenericGraph interface
implemented bfs