Completed implementation of one-state imputation procedure using
information about all neighbouring edges.