Note that this assumes that the chain is a tree (no loops)
Arguments
- seed.id
The id of the seed whose chain we wish to build from the dataset
- survey.data
The dataset
- is.child.fn
A function which takes two ids as arguments; it is expected to return
TRUEif the second argument is the parent of the first, andFALSEotherwise. it defaults tois.child.ct()