Internal function. Checks module dependencies and attempts to ensure that cyclic dependencies can be resolved, checking objects in the global environment, and finally, attempts to determine the load order for modules in the simulation.
.depsLoadOrder(sim, simGraph)# S4 method for simList,igraph
.depsLoadOrder(sim, simGraph)
Character vector of module names, sorted in correct load order.
A simList
object.
An igraph()
object produced by depsGraph()
.
Alex Chubaty
Uses igraph::topo_sort()
to try to find a load order satisfying
all module object dependencies.