Making GraphWidget emits a little more general