MinimumChordalCompletion crashes if the graph does not contain chordless cycles.
Then stack fails here
|
A = np.stack(all_coefficients) |
We could add something like
if len(all_coefficients) == 0:
return <something>
raise Warning( .... )
to make the error a bit more understandable