public void Johnson()
        {
            StreamWriter     output = new StreamWriter("Out0502.txt");
            StreamReader     input  = new StreamReader("In0502.txt");
            JohnsonAlgorithm x      = new JohnsonAlgorithm();

            x.InputData(input);
            x.BellmanFord(0, output);
            G = x.GenerateGPrim(output);
            for (int i = 1; i < G.GetLength(0); i++)
            {
                x.DikstraAlgorithm(7, i, output);
            }
            output.Close();
        }
Пример #2
0
        static void Main(string[] args)
        {
            JohnsonAlgorithm x = new JohnsonAlgorithm();

            x.Johnson();
        }