Skip to content

Commit

Permalink
fix(microtexts): properly parse scheme edges
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkolenz committed Feb 10, 2023
1 parent 821d574 commit 122ca44
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions arguebuf/load/_load_microtexts.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,18 @@ def load_microtexts(
g.add_edge(config.EdgeClass(source_atom, scheme_node))
g.add_edge(config.EdgeClass(scheme_node, target_atom))

for edge in scheme_edges.values():
if (scheme_node := g.scheme_nodes.get(edge.target)) and (
atom_node := g.atom_nodes.get(edge.source)
):
g.add_edge(config.EdgeClass(atom_node, scheme_node))

for edge_id, edge in edge_edges.items():
if (target_scheme := g.scheme_nodes.get(edge.target)) and (
atom_node := g.atom_nodes.get(edge.source)
):
source_scheme = config.SchemeNodeClass(id=edge_id)
source_scheme = config.SchemeNodeClass(id=edge_id, scheme=Attack.DEFAULT)
g.add_edge(config.EdgeClass(atom_node, source_scheme))
g.add_edge(config.EdgeClass(source_scheme, target_scheme))

for edge in scheme_edges.values():
if (scheme_node := g.scheme_nodes.get(edge.target)) and (
atom_node := g.atom_nodes.get(edge.source)
):
g.add_edge(config.EdgeClass(atom_node, scheme_node))

return g

0 comments on commit 122ca44

Please sign in to comment.