[**European Parliament MCP Server API v1.3.9**](../../../README.md)

***

[European Parliament MCP Server API](../../../modules.md) / [utils/graphAlgorithms](../README.md) / betweennessCentrality

# Function: betweennessCentrality()

> **betweennessCentrality**(`nodeIds`, `edges`): [`Map`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map)\<`string`, `number`\>

Defined in: [utils/graphAlgorithms.ts:267](https://github.com/Hack23/European-Parliament-MCP-Server/blob/main/src/utils/graphAlgorithms.ts#L267)

## Parameters

### nodeIds

readonly `string`[]

### edges

readonly [`WeightedEdge`](../interfaces/WeightedEdge.md)[]

## Returns

[`Map`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Map)\<`string`, `number`\>
