By graph here I mean something resembling these images:
Just to make the list of options complete: Graphviz4Net is open-source implementation of what Coincoin has suggested in his answer.
Graph# is also another option. I haven't used it personally, but I've been meaning to get around to looking over it.