Hi. I need to print a btree, and instead of coding a method for draw it, I want to use graphviz. Have anyone of you used before? How can embed graphviz into my project without make the user do anything manually?
There are some examples in the web, but they say that I have to generate a .dot file and compile it. Is there a way to do what I want? if not, what else you recommend to draw a btree?
thanks

There are some examples in the web, but they say that I have to generate a .dot file and compile it. Is there a way to do what I want?

Yes. You'll have to write code to create a DOT file (which is just text) that describes your tree, and then run GraphViz externally (e.g., using system() ). That shouldn't be too hard to set up.