Find and sort all dependencies  RootPlugins set of root plugins  AddOutput callback to receive roots and dependencies, called in dependency order  false if there is an error or a cyclic dependency is discovered