Ejemplo n.º 1
0
        public void Initialize()
        {
            StreamWriter writer = new StreamWriter(nameFile);
            writer.Write("3" + '\n'
                        + "1 1 0" + '\n'
                        + "1 1 1"  + '\n'
                        + "0 1 1" + '\n'
                        + "2" + '\n'
                        + "os 100" + '\n'
                        + "mac 20" + '\n'
                        + "1 mac" + '\n'
                        + "2 os" + '\n'
                        + "3 os" + '\n'
                        + "2");
            writer.Close();

            network = new Network(nameFile);
            result = network.Run().Split('\n');
        }
Ejemplo n.º 2
0
 static void Main(string[] args)
 {
     Network network = new Network("../../in.txt");
     Console.WriteLine(network.Run());
 }