-
Notifications
You must be signed in to change notification settings - Fork 194
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
approximate graph distances #275
Comments
This seems like it would be easy (if expensive) for DAGified graphs but nigh impossible for non-DAGs. For DAGs couldn't we just BFS from start node -> end node and sum the lengths of the sequences in each possible path? I guess we'd then want to take the min or max or average of that distance as our measure. |
Check this out: http://dl.acm.org/citation.cfm?id=1044732 Approximate distance oracles
|
Two ideas.
|
Quick update here: In a local xg, I have a hacky (but quick) path-based distance implemented: Idea: project both nodes to a path, then compute the path distance. While I was at it, I added an expand_context function that works in base The idea being to optionally plug these things into the mapper to see if it On Thu, May 12, 2016 at 5:07 PM, Erik Garrison notifications@github.com
|
One thing we get easily in a linear reference is distance. How can we derive these efficiently for variation graphs? There are a number of general techniques for deriving approximate graph distances, but maybe these would be overkill. If we have assembled the graph out of alignments, and these are embedded in it (as "threads") then we can convert them into "paths" and measure distances on them. We need everything to be close to some path for this to work. Perhaps both techniques can be useful. We just need a single model for storing the approximate distances.
The text was updated successfully, but these errors were encountered: