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

export to graphviz dot #43

Open
redplait opened this issue Oct 23, 2024 · 1 comment
Open

export to graphviz dot #43

redplait opened this issue Oct 23, 2024 · 1 comment

Comments

@redplait
Copy link

hello
is it possible to add exporting interval_tree to graphviz dot for external drawing/viewing?

@5cript
Copy link
Owner

5cript commented Oct 23, 2024

That is a good feature idea. Not currently possible, but I can add this, although probably not today.
It should be very easy by iterating over nodes, which should even be possible via the public interface, if I remember right.

So you could do it right now yourself with:

auto root = mytree.root();
auto left = root->left();
auto right = root->right();

and then go through it recursively, while creating the dotfile

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

No branches or pull requests

2 participants