static DependencyGraph create(Stream<Class<?>> injectables, Function<Class<?>, InjectorProxy> proxyFunction) {
        final DependencyGraph graph = new DependencyGraphImpl(proxyFunction);
        injectables.forEachOrdered(graph::getOrCreate);
        graph.inject();
        return graph;
    }
Creates and returns a new DependencyGraph.

@param injectables to use
@param proxyFunction to use when locating an InjectorProxy for future invocations
@return a new DependencyGraph

@throws CyclicReferenceException if there is a cyclic dependency
common-parent/injector/src/main/java/com/speedment/common/injector/dependency/DependencyGraph.java