This is because the local score provided by the classifier for (encrypt, convert) is 0.997-slightly higher than the local score for (encrypt, encode), which is 0.995.
the transitive closure of a directed graph G is obtained by adding an edge from node i to node j if there is a path in G from i to j.