@Override
    public Optional<DependencyNode> getIfPresent(Class<?> clazz) {
        for (final Map.Entry<Class<?>, DependencyNode>impl : nodes.entrySet()) {
            if (clazz.isAssignableFrom(impl.getKey())) {
                return Optional.of(impl.getValue());
            }
        }

        return Optional.empty();
    }
The default implementation of the {@link DependencyGraph} interface.

@author Emil Forslund
@since  1.0.0
common-parent/injector/src/main/java/com/speedment/common/injector/internal/dependency/DependencyGraphImpl.java