add undirected mode
mark unsolvable problems