Applying Graph Algorithms to Text Segmentation