您最多能選擇 25 個主題 主題必須以字母或數字為開頭,可包含連接號「-」且最長為 35 個字元。
此存儲庫已封存。您可以查看檔案及 Clone 此存儲庫,但不能推送、建立問題及發出合併請求。
 
 
 
 
 
 

29 行
593 B

import sys
import json
# pokus se naimportovat graphviz
try:
from graphviz import Digraph
except ModuleNotFoundError as e:
print("ERROR: Nainstaluj si graphviz - `pip install graphviz`", file=sys.stderr)
exit(1)
# nacist definici grafu
with open("tasks.json", "r") as f:
definition = json.load(f)
dot = Digraph(comment='The Round Table')
# nodes
for task in definition["tasks"]:
dot.node(task["id"], task["id"])
# edges
for task in definition["tasks"]:
for req in task["requires"]:
dot.edge(req, task['id'])
dot.render('out/round-table.gv', view=True)