inference of edges