Determine the positions of nodes inside of a graph - C#