connected_segments