Fixed a bug when EdgeReducer could not build graph because of "knots" on buffer border.