added export to dot file on basegraph