added neighbors object conversion code

code found at end of utilitiesforcreatingflow.r file in nat'l/data
folder