code: function resolveDependencies(map) {
  			var dependencyGraph = dependencies || {};
  			var resolved = [];
  			var unresolved = [];
  
  			// Build dependency graph
  			if (map.dependencies) {
  				dependencyTools.buildDependencyGraph(
  					undefined,  // First recursion without a start value
  					map.dependencies,
  					dependencyGraph
  				);
  
  				// Flatten/resolve the dependency tree
  				dependencyTools.resolveDependencyGraph(
  					undefined,  // First recursion without a start value
  					resolved,
  					unresolved,
  					dependencyGraph
  				);
  			}
  
  			return resolved;
  		}
docs: Builds dependency graph.
  See lib/dependencyTools.js.
  
  @param {Object} map Map from bower.commands.list(kind: map).
  @return {Array}