Add optional support for actions rendering

In my project it is important to draw actions to see state consequences flow.
So I have added optional support of actions  to Graph.php