protected void UpdateMaxNodes(IMap map) { var atualNodes = Populations.Sum(o => o.ListNodes.Count); if (atualNodes >= map.GetMaxExpandedNodes()) { map.SetMaxExpandedNodes(atualNodes); } }