Beispiel #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();
        }
Beispiel #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();
        }