Added topological order method