gt.pas : graphtheory (query incoming/outgoing nodes, do toposort)