Add numeric_only=True to pandas groupby. This fixes compatability with pandas 2.0
If multiclass == False, we sum SHAP values. This makes it so that there is only 1 flow if the source and target is the same.
Merged if several edges are coming and going to the same nodes. This is relevant for edges incoming to "Other connections" since these are lumped to a single edge.