Better graph widget

This is the branch I'm working to fix the Graph widget.

I'll implement the things described in #255.