Text this: Heuristics for graph decomposition