static void task4c() { Graph gr1 = new Graph("input.txt"); var temp = gr1.DoBellman("Sadovaya/Sennaya/Spasskaya"); var temp1 = gr1.DoBellman("Pushkinskaya/Zvenigorovskaya"); Console.WriteLine("{0}", temp["Techologicheskiy"]); Console.WriteLine("{0}", temp1["Techologicheskiy"]); }
static void task4b() { Graph gr1 = new Graph("input.txt"); foreach (object name in gr1.GetNodeNames()) { var temp = gr1.DoBellman(name); foreach (var item in temp) { Console.WriteLine("{0} {1} {2}", name.ToString(), item.Key, item.Value); } } }