예제 #1
0
        static string printFinal(List <Graph> result) // Print the final result
        {
            string text = "";
            int    i    = 1;

            foreach (Graph g in result)
            {
                text += "Semester " + i + " : ";
                foreach (Node n in g.getNodes())
                {
                    text += n.getCourse() + " ";
                }
                text += "\n";
                i++;
            }
            return(text);
        }