fix: raise an error when Algo.diameter is called on a non-connected graph

2 jobs for v4.5.4 in 3 minutes and 29 seconds (queued for 10 seconds)
latest
Status Name Job ID Coverage
  Build
passed build #245747

00:03:13

 
  Release
passed simca-docker #245748

00:00:15