created some improvements for the directed graph
by searching for circles that have an inverse
and deleting them