Skip to content
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

Going between head and tail vertices #3

Open
ANekhai opened this issue Nov 22, 2017 · 1 comment
Open

Going between head and tail vertices #3

ANekhai opened this issue Nov 22, 2017 · 1 comment

Comments

@ANekhai
Copy link

ANekhai commented Nov 22, 2017

Hey,
Would it be possible to implement a function that can go between the head and tail vertices of the same block? Say from 1t to 1h (or vice versa) even though there isn't necessarily a BGedge between them?

Thanks,
Anton

@aganezov
Copy link
Owner

Can you elaborate? What do you mean by "can go"? If you mean: how can you, having one segments extremity, get another vertex, representing another segment extremity, you can do so by using the mate_vertex attribute on a given BGVertex instance.

For more, look at functions get_blocks_order and _traverse_blocks_from_vertex methods in the BreakpointGraph class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants