graph: don't handle multiple recipes just yet

This commit is contained in:
Danny Robson 2019-04-28 08:33:08 +10:00
parent bd7f7dd743
commit be1b69fe03

View File

@ -9,9 +9,8 @@ from typing import Dict
def graph_all(recipes: dict) -> None: def graph_all(recipes: dict) -> None:
print("digraph G {") print("digraph G {")
for result, method in recipes.items(): for result, method in recipes.items():
for variation in method: for i in method[0]["input"]:
for i in variation["input"]: print(f"{i} -> {result}")
print(f"{i} -> {result}")
print("}") print("}")