You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As it is not possible to add twice the same link line in the graph, one should expect to not be able to add the reversed link to the graph.
importgfapygraph=gfapy.Gfa.from_file("graph.gfa")
forsegingraph.segments:
forr_link_lineinseg.dovetails_R:
print(r_link_line)
rev_r_link_line=f"L\t{r_link_line.to_segment.name}\t{gfapy.invert(r_link_line.to_orient)}\t{r_link_line.from_segment.name}\t{gfapy.invert(r_link_line.from_orient)}\t{r_link_line.overlap}"print(rev_r_link_line)
graph.add_line(rev_r_link_line) # should raise gfapy.RuntimeError exception# graph.add_line(r_link_line) # this raises gfapy.RuntimeError exceptionprint()
I suspect the same unexpected behaviour for edges in gfav2
The text was updated successfully, but these errors were encountered:
vepain
changed the title
Unexpected behaviour: the reverse of link can be added to the graph
Unexpected behaviour: the reverse of a link can be added to the graph
Jan 8, 2025
As it is not possible to add twice the same link line in the graph, one should expect to not be able to add the reversed link to the graph.
I suspect the same unexpected behaviour for edges in gfav2
The text was updated successfully, but these errors were encountered: