Skip to content

Commit

Permalink
improving autogenerated edge ids (and making them always be strings)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanDietzMorris committed Sep 30, 2024
1 parent aa6b5bb commit ff0a22d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reasoner_transpiler/cypher.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def transform_edges_list(edges):
# transform the edge into TRAPI
for cypher_edge in cypher_edges:
edge_element_id, edge_dict = convert_bolt_edge_to_dict(cypher_edge)
edge_id = edge_dict.get('id', edge_index)
edge_id = edge_dict.get('id', f'edge_{edge_index}')
element_id_to_edge_id[edge_element_id] = edge_id
# get properties matching EDGE_SOURCE_PROPS keys, remove biolink: if needed,
# then pass (key, value) tuples to construct_sources_tree for formatting, constructing the 'sources' section
Expand Down

0 comments on commit ff0a22d

Please sign in to comment.