private void addFront(Map<GhidraBundle, Set<GhidraBundle>> front) {
			for (Entry<GhidraBundle, Set<GhidraBundle>> entry : front.entrySet()) {
				GhidraBundle source = entry.getKey();
				if (addToAvailable(source)) {
					addVertex(source);
					Set<GhidraBundle> dependents = entry.getValue();
					if (dependents != null) {
						for (GhidraBundle destination : dependents) {
							addEdge(source, destination, new BundleEdge());
						}
					}
				}
			}
		}
Utility class to build a dependency graph from bundles where capabilities map to 
requirements.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/osgi/BundleHost.java