CalculateNetDepth(CGenome genome) { int maxDepth = 0; for (int i = 0; i < genome.NumNeurons(); i++) { for (int j = 0; j < vecSplits.Count; j++) { SplitDepth split = vecSplits[i]; if (genome.SplitY(i) == split.value && split.depth > maxDepth) { maxDepth = split.depth; } } } return(maxDepth + 2); }