Graphviz supports CSS stylesheets for SVG ouptut. There's an attribute stylesheet in the documentation.
Should the attribute stylesheet be given separately to all the nodes? How can I set a stylesheet for all the graph elements just writing the CSS filename to one place only? Where?
