Visualization of topological sort