Treelike comparability graphs: Characterization, recognition and applications.