add function to build neighbor relations
Merge branch 'master' of https://github.com/andrewdavidsmith/adssrc