def random_segment_test(): v = Visualizer() segments = list(generate_segments(5)) bo = BentleyOttmann(segments) print(segments) for s in segments: v.add_segment(s[0], s[1]) # v.show() bo.run() for p in bo.result: v.add_point(p) v.show()