I have a question about graphics.h library of C. I am trying to visualize a suffix tree in C with using graphics.h library or OpenGL library it doesn't matter. How can I write the suffixes of the given word on top of the lines? I couldn't find a way to do it. For now I can print out the suffixes like this: If the given word is (xabxac$) it will print out
- $[6]
- a[-1]
- bxac$[1]
- c$[]
- bxac$[2]
- c$[5]
- xa[-1]
- c$[3]
- bxac$[0]
So any help how can I visualize this like a tree in C?