Root.PrintRoot()

Here are the examples of the csharp api class Root.PrintRoot() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: Telerik-Academy
Source File: 03. Root (bool[] - has parent).cs
internal static void Main()
    {
        var numberOfEdges = int.Parse(Console.ReadLine());
        graph = new bool[numberOfEdges + 1];

        for (int i = 0; i < numberOfEdges; i++)
        {
            var vertices = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
            graph[vertices[1]] = true; // Has parent
        }

        PrintRoot();
    }