private Int32 getNodesFromDictCount(Dictionary<Int32, List<Int32>> dict, Int32 listHandle) { List<Int32> nodeHandles; if (dict.TryGetValue(listHandle, out nodeHandles)) return nodeHandles.Count; else return 0; }