HiI should say that I think storing a GEDCOM file's content, sort of literally, in a tree ought to work, because of the nested nature of the defined structure of such file.
Creating another data structure to represent the linkage between people, etc will be a separate issue.
-- Ron Savage http://savage.net.au/ Ph: 0421 920 622