an example from Tom
simplify graph-dot's attributes and printing