addded path generation in digraph and corrected a bug in hash_map