# ActivationRepartitionerOptions.MaxEdgeCount

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.activationrepartitioneroptions/) | [Properties](/orleans/docs/api/csharp/microsoft.orleans.runtime/orleans.configuration.activationrepartitioneroptions/properties/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Runtime/Configuration/Options/ActivationRepartitionerOptions.cs)

```csharp
public int MaxEdgeCount
```

The maximum number of edges to retain in-memory during a repartitioning round. An edge represents how many calls were made from one grain to another.

If this number is N, it does not mean that N activations will be migrated after a repartitioning round. It also does not mean that if any activation ranked very high, that it will rank high at the next cycle. At the most extreme case, the number of activations that will be migrated, will equal this number, so this should give you some idea as to setting a reasonable value for this.
