[−][src]Function sp_npos_elections::evaluate_support
pub fn evaluate_support<AccountId>(
support: &SupportMap<AccountId>
) -> ElectionScore
Evaluate a 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.