Skip to content

Commit

Permalink
Fix dependency graph creation
Browse files Browse the repository at this point in the history
  • Loading branch information
YoanSallami committed Oct 9, 2023
1 parent bb4fb9f commit 7bf65b8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions hybridagi/hybridstores/program_memory/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,10 @@ def add_programs(
if self.verbose:
pbar.close()
for name, dep in dependencies.items():
for prog in dep:
for prog_dep in dep:
self.query(
'MERGE (:Program {name:"'+name+\
'"})-[:DEPENDS_ON]->(:Program {name:"'+prog+'"})')
'MATCH (n:Program {name:"'+name+'}),'+
'(m:Program {name:"'+prog_dep+'}) '+
'MERGE (n)-[:DEPENDS_ON]->(m)')
return indexes

0 comments on commit 7bf65b8

Please sign in to comment.