public Collection<Dependency> getIncomingEdges(Resource to) { Map<Resource, Dependency> deps = incomingDependenciesByResource.get(to); if (deps != null) { return deps.values(); } return Collections.emptyList(); }
public Collection<Dependency> getOutgoingEdges(Resource from) { Map<Resource, Dependency> deps = outgoingDependenciesByResource.get(from); if (deps != null) { return deps.values(); } return Collections.emptyList(); }