Prolog emulation of pqGraphviz