Use the bipartite matching algorithm to achieve domain consistency for all diff(x1,...,x5), where x1 ∈ {1, 4}, x2 ∈ {1, 3}, x3 ∈ {3, 6}, x4 ∈ {2, 3, 5}, x5 ∈ {1, 2, 3, 4, 5, 6, 7}.
Do it once by identifying even alternating cycles and even alternating paths on the graph.
Then do it again by identifying strongly connected components on the associated directed grap.