Skip to content

export to graphviz dot #43

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

Closed
redplait opened this issue Oct 23, 2024 · 2 comments
Closed

export to graphviz dot #43

redplait opened this issue Oct 23, 2024 · 2 comments

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

@5cript 5cript mentioned this issue Jan 9, 2025
@5cript
Copy link
Owner

5cript commented Jan 9, 2025

I added a simplistic implementation for this feature. Example is in readme and example directory.

@5cript 5cript closed this as completed Jan 9, 2025
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