fixed SyntaxError with lambda definition
added BuildGraph.topological_sort()