This is an inferred relationship. The two men were possibly brothers or cousins. Robert Neilson's son Thomas, shown in his will proved in Philadelphia in 1867, was born c. 1826, according to online genealogical material.
Other Relationships of Robert Neilson
Father-in-law → Son-in-law