Graph primitives for PyQt