[][src]Function sp_phragmen::evaluate_support

pub fn evaluate_support<AccountId>(
    support: &SupportMap<AccountId>
) -> PhragmenScore

Evaluate a phragmen result, given the support map. The returned tuple contains:

  • Minimum support. This value must be maximized.
  • Sum of all supports. This value must be maximized.
  • Sum of all supports squared. This value must be minimized.

O(E) where E is the total number of edges.