What could be the problem with these graphs when using graph_attr={‘splines’: ‘ortho’}
Python code for example:
case ast.Assign(targets, value):
assign_id = getid("assignment")
label = f"Присвоить {ast.unparse(targets[0])} значение {ast.unparse(value)}"
parent_node = get_parent_node(root_ast_node,
ast_node)
print(tail_id)
graph.node(assign_id, label, shape="box", width="2.5", fixedsize="true", headport="n", tailport="s")
if tail_id and not tail_id.startswith("cond"):
graph.edge(tail_id, assign_id, dir="forward", headport="n")
elif tail_id.startswith("cond"):
if isinstance(parent_node, ast.If):
if ast_node in parent_node.orelse:
graph.edge(tail_id, assign_id, label="no", dir="forward", headport="n", tailport="e")
else:
graph.edge(tail_id, assign_id, label="yes", dir="forward", headport="n", tailport="s")
return assign_id
...
graph = graphviz.Graph(format='png', graph_attr={'splines': 'ortho'})