@@ -168,7 +168,7 @@ def transform_result(cypher_record,
168168 # Each path is an array of nodes and edges like [n1, n2, n3, e1, e2, e3],
169169 # where nodes are node_ids from the graph and edges are element_ids of relationships from the graph.
170170 for path in paths :
171-
171+ print ( path )
172172 # Map results/paths to their corresponding qnodes and qedges
173173 qnode_id_to_results = {qnode_id : (qnode , result_node_id ) for (qnode_id , qnode ), result_node_id in
174174 zip (qgraph_nodes .items (), path [:len (qgraph_nodes )])}
@@ -217,6 +217,8 @@ def transform_result(cypher_record,
217217 # Create TRAPI edge bindings
218218 for qedge_id , (qedge , path_edge ) in qedge_id_to_results .items ():
219219
220+ print (" " ,qedge_id , qedge , path_edge )
221+
220222 # skip empty results
221223 if not path_edge :
222224 continue
@@ -249,6 +251,7 @@ def transform_result(cypher_record,
249251 composite_edge_ids = [graph_edge_id ] + subclass_edge_ids
250252 composite_edge_id = "_" .join (composite_edge_ids )
251253 aux_graph_id = f"aux_{ composite_edge_id } "
254+ print (" " ,aux_graph_id )
252255 if aux_graph_id not in aux_graphs :
253256 aux_graphs [aux_graph_id ] = {
254257 "edges" : composite_edge_ids ,
0 commit comments