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