simplify toDot