boost::shared_ptr<RouteList>
-ARDOUR::topographical_sort (
+ARDOUR::topological_sort (
boost::shared_ptr<RouteList> routes,
DAGEdges edges
)
}
}
- /* Sort the initial queue so that non-rec-enabled routes are run first */
+ /* Sort the initial queue so that non-rec-enabled routes are run first.
+ This is so that routes can record things coming from other routes
+ via external connections.
+ */
queue.sort (RouteRecEnabledComparator ());
/* Do the sort: algorithm is Kahn's from Wikipedia.
trace_terminal (*i, *i);
}
- boost::shared_ptr<RouteList> sorted_routes = topographical_sort (r, edges);
+ boost::shared_ptr<RouteList> sorted_routes = topological_sort (r, edges);
route_graph->rechain (sorted_routes);
#ifndef NDEBUG