public GeneratingFunction(IScoringGraph graph) { _graph = graph; /* _maxAchievableScore = new int[_graph.GetNumNodes()]; for (var i = _graph.GetNumNodes() - 1; i >= 0; i--) { var s = _graph.GetNodeScore(i); if (s > 0) _maxAchievableScore[i] = s; if (i < _graph.GetNumNodes() - 1) _maxAchievableScore[i] += _maxAchievableScore[i + 1]; }*/ }
public GeneratingFunction(IScoringGraph graph) { _graph = graph; /* * _maxAchievableScore = new int[_graph.GetNumNodes()]; * for (var i = _graph.GetNumNodes() - 1; i >= 0; i--) * { * var s = _graph.GetNodeScore(i); * if (s > 0) _maxAchievableScore[i] = s; * if (i < _graph.GetNumNodes() - 1) _maxAchievableScore[i] += _maxAchievableScore[i + 1]; * }*/ }