# Function computeNetworkVotingSimilarityFromDoceo

- computeNetworkVotingSimilarityFromDoceo(
  mepIdSubset: ReadonlySet<string>,
  options?: ComputeNetworkVotingSimilarityOptions,
  ): Promise<NetworkVotingSimilarityResult | null>

  Compute pairwise voting-similarity edges for the supplied MEP id set.

  Only MEP ids in `mepIdSubset` are considered, keeping the O(V²) inner loop bounded by the caller's network size (≤ 900 MEPs).

  #### Parameters

  - mepIdSubset: ReadonlySet<string>

    Set of MEP ids to score (typically the network nodes).

  - options: ComputeNetworkVotingSimilarityOptions = {}

    Optional bounds and timeout overrides.

  #### Returns Promise<NetworkVotingSimilarityResult | null>

  Edges with similarity ≥ `minSimilarity` (default 0.7) and ≥ MIN_SHARED_DECISIVE_VOTES co-participations, or `null` when DOCEO is unavailable.

  #### Security

  Errors are audit-logged as `network_voting_similarity.fetch` — only the inspected count and node count are logged; no PII.

  - Defined in utils/networkVotingSimilarity.ts:198