have you considered a case when `n_unique_nodes==1`? does it result in a double noded line or a point?