[iter] Adjust is_source_of / is_sink_of

There are two cases that we accept.  Encode both.
1 file changed