using System.Collections.Generic;
using System.Diagnostics;
public static void Main()
var list = new List<string>();
var sw = new Stopwatch();
var rows = Math.Floor((double) list.Count/3);
for (int i = 0; i < 3; i++) {
for (int j = 0; j < rows; j++) {
Console.WriteLine(sw.Elapsed);
var rows2 = Math.Floor((double) list.Count/3);
for (int i = 0; i < list.Count; i += 3) {
var nodes = list.Skip(i).Take((int) rows);
foreach (var node in nodes) {
Console.WriteLine(sw.Elapsed);
var nodeList = new List<string>[3];
for (var i = 0; i < list.Count; i++)
if (nodeList[i%3] == null)
nodeList[i%3] = new List<string>();
nodeList[i%3].Add(list[i]);
foreach(var nodes in nodeList) {
foreach (var node in nodes) {
Console.WriteLine(sw.Elapsed);