-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typo in Links.jl #2
Comments
Pushed the changes to a new branch named 'gsoc' in a copied repository in: |
Hi Arda, I'll double check my groups C++ implementation, but I don't think that's a bug. In the generic sequence graph. Nodes have a sequence (always the canonical version of the sequence), a source end (+), and a sink end (-).
Links can connect nodes from either end. So a link could connect the sink of a node X to a source of node Y. A link could also connect a source of X to a source of Y, and so on. Setting up nodes and links this way means it acts like a flow graph: As you move through a graph, (like in a breadth first search for example), you can go through a node forwards or backwards. So let's say you've been travelling through the graph, the last link took you from the (-) end of node Y, to the (+) end of node X. Now you are at node X, to continue going forward, you have to leave using the other end of X (the - end). Hence the So the correct behaviour should be the following: link = SequenceGraphLink(-1, 2, 0)
# I'm travelling through node 1 in the positive direction `(+)------->(-)`, (denoted as +1 or just 1), so does link let me continue forwards in the direction I was heading (i.e. is it a fw link)?
is_fw_link(link, 1)
# will be true
# I'm travelling through node 1 in the negative direction `(+)<------(-)`, (denoted as -1), so does `link` let me continue forwards in the direction I was heading (i.e. is it a fw link)?
is_fw_link(link, -1)
# will be false |
Dear Ben, Thanks a lot for the detailed explanation. |
Currently, |
I see, it is very helpful for me to get familiar with the conventions you have set at this stage of our GSoC project. |
By the way, do you think it would be useful to add a NodeID field for the SequenceGraphNode Type defined in Nodes.jl ?
|
I'll close this issue as it's quite old now. Any fresh issues with the Graph API can be opened again. |
I think "is_forward_link" function has a typo.
'-n' should be replaced with 'n'.
I thought maybe there is a special reason behind this but could not figure it out.
Possible Solution / Implementation
I will push a new branch along with some other minor updates to the package.
The text was updated successfully, but these errors were encountered: