emilydolson/python-red-black-trees

Uml Output

Beakerboy opened this issue · 1 comments

There is a extended UML format that I feel could be used to visualize the tree structure quite well:


@startmindmap
*[#red] <latex>\rotatebox{90}{Root Entry}</latex>
**[#black] <latex>\rotatebox{90}{}</latex>
**[#black] <latex>\rotatebox{90}{\textcolor{white}{PROJECT}}</latex>
***[#red] <latex>\rotatebox{90}{PROJECTwm}</latex>
****[#black] <latex>\rotatebox{90}{}</latex>
****[#black] <latex>\rotatebox{90}{}</latex>
***[#red] <latex>\rotatebox{90}{VBA}</latex>
****[#black] <latex>\rotatebox{90}{}</latex>
****[#black] <latex>\rotatebox{90}{\textcolor{white}{Module1}}</latex>
*****[#black] <latex>\rotatebox{90}{\textcolor{white}{ThisWorkbook}}</latex>
******[#red] <latex>\rotatebox{90}{\_VBA\_PROJECT}</latex>
*******[#black] <latex>\rotatebox{90}{}</latex>
*******[#black] <latex>\rotatebox{90}{}</latex>
******[#black] <latex>\rotatebox{90}{}</latex>
*****[#black] <latex>\rotatebox{90}{\textcolor{white}{Sheet1}}</latex>
******[#black] <latex>\rotatebox{90}{}</latex>
******[#red] <latex>\rotatebox{90}{dir}</latex>
*******[#black] <latex>\rotatebox{90}{}</latex>
*******[#black] <latex>\rotatebox{90}{}</latex>
****[#black] <latex>\rotatebox{90}{}</latex>
**[#black] <latex>\rotatebox{90}{}</latex>
@endmindmap

Will produce the following image:
932F8108-FF9A-4E59-A2D7-CC3575604A17

This would be easy to add and I think would be better then the text output.

Oh yeah, that's very pretty! Feel free to add it! My only comment is that dot format seems like it's slightly more popular, so it might be worth considering doing that instead/in addition.