Esempio n. 1
0
        public static void Main(string[] args)
        {
            var n = int.Parse(Console.ReadLine());

            GraphWithAdjacencyMatrixWeighted graphWithAdjacencyMatrixWeighted = new GraphWithAdjacencyMatrixWeighted(n);
            graphWithAdjacencyMatrixWeighted.Print();
            Console.WriteLine(graphWithAdjacencyMatrixWeighted.SumOfSalaries());

            // graphWithAdjacencyMatrixWeighted.PrintTopologicalSort();
        }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            var n = int.Parse(Console.ReadLine());

            GraphWithAdjacencyMatrixWeighted graphWithAdjacencyMatrixWeighted = new GraphWithAdjacencyMatrixWeighted(n);

            graphWithAdjacencyMatrixWeighted.Print();
            Console.WriteLine(graphWithAdjacencyMatrixWeighted.SumOfSalaries());

            // graphWithAdjacencyMatrixWeighted.PrintTopologicalSort();
        }