Fixed all issues in 7_graph: function.__name__ and cycle detection