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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.