From: Efficient path-based computations on pedigree graphs with compact encodings
p 1
p 2
p 3
q 1
True
False
q 2