}
}
else {
// pick (one of) the existing versions (it is actually illegal to have more
// than one, so just pick the first one).
MetadataInfo first = Iterables.get(existingVersions, 0);
b = moduleNodeData.get(first);
}
createUnresolvedEdge(a, b, d);
}
// Add edges for all resolved dependencies
for(MetadataInfo.Resolution r : mi.getResolvedDependencies()) {
createResolvedEdge(a, moduleNodeData.get(r.metadata), r.dependency);
}
}
Map<File, ModuleNodeData> fileIndex = Maps.newHashMap();
for(Map.Entry<Object, ModuleNodeData> m : moduleNodeData.entrySet()) {
if(!(m.getKey() instanceof ModuleName)) {
MetadataInfo mi = (MetadataInfo) m.getKey();
fileIndex.put(mi.getFile(), m.getValue());
}
}
Map<File, Multimap<File, Export>> ambiguities = exportData.getAmbiguityMap();
for(Map.Entry<File, Multimap<File, AllModuleReferences.Export>> x : exportData.getImportMap().entrySet()) {
// get the imported