diff --git a/src/main/java/h07/graph/DirectedGraphFactory.java b/src/main/java/h07/graph/DirectedGraphFactory.java index c8dc26b..4d093a4 100644 --- a/src/main/java/h07/graph/DirectedGraphFactory.java +++ b/src/main/java/h07/graph/DirectedGraphFactory.java @@ -13,4 +13,8 @@ public interface DirectedGraphFactory { * @return der {@code DirectedGraph}, der von dieses Fabrik erzeugt wird. */ DirectedGraph createDirectedGraph(); + + static DirectedGraphFactory defaultFactory() { + return DirectedGraphImpl::new; + } }