Limit size of adjacent list

Change-Id: I6dd84282931c34bd75225b9ff2d0e1c988dc761e