Esempio n. 1
0
        static void Main(string[] args)
        {
            SleighKit        guide = new SleighKit("input.txt");
            DirectionalGraph graph = new DirectionalGraph();

            foreach ((string curr, string next) in guide.ReadManual())
            {
                graph.AddStep(curr, next);
            }

            var Answer1 = new GraphReader(graph).GetSteps();

            Console.WriteLine(Answer1);

            graph.Reset();
            var Answer2 = new GraphReader(graph).GetDurationWithWorkersAndTime(5, 60);

            Console.WriteLine(Answer2);


            Console.Read();
        }
Esempio n. 2
0
 public GraphReader(DirectionalGraph graph) => (Graph, Nodes) = (graph, graph.Nodes);