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:
print("digraph G {")
for result, method in recipes.items():
for variation in method:
for i in variation["input"]:
print(f"{i} -> {result}")
for i in method[0]["input"]:
print(f"{i} -> {result}")
print("}")