ignore C files
weighted graph and minimum distance in a graph specified