This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var graph = new Graph(); | |
| var graphFile = File.ReadLines(args[0]); | |
| foreach (var line in graphFile) | |
| { | |
| var data = line.Split().Select(int.Parse).ToArray(); | |
| graph.AddEdge(data[0], data[1], data[2]); | |
| } | |
| var labeling = new Labeling(graph); |