small refactorin, graphviz output for Endomorphism