graph-theoretical methods