예제 #1
0
 private void ReadGraphsFromFile()
 {
     Logger.LogInformation("Reading graphs from file...");
     foreach (string file in Files)
     {
         try
         {
             if (!Graphs.ContainsKey(file))
             {
                 Logger.LogDebug($" - loading '{file}'...");
                 Graphs.Add(file, ReadGraphFromFile(file));
             }
         }
         catch (Exception exception)
         {
             Logger.LogWarning($" ! Error while parsing '{file}': {exception.Message}");
         }
     }
     Logger.LogInformation("Done reading graphs from file.\n");
 }