I am trying to visualize a Control Flow Graph in Python using pyqtgraph. I have the following two problems.

How can I visualize the edges with a direction?
How can I visualize a self edge?

I tried looking into the documentation, but couldn't find. Obviously, I didn't get time to read it all!
For direction, you might add a pg.ArrowItem at the end of each line (although this could have poor performance for large networks), and for self connections, QtGui.QGraphicsEllipseItem combined with an arrow.
Edges with Direction in pyqtgraph GraphItem