Similar Items: Minimum Stable Cut and Treewidth