add comment in graph_cut_by_line function