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!
While pyqtgraph is awesome, for my use case I found a much better tool to do this. 
graphviz is a nice tool to develop Control Flow Graphs quite conveniently, and has a large number of features for this particular problem.
Edges with Direction in pyqtgraph GraphItem