moving graph operations to GraphViz
checking if node with same toString exists