Friker/alg-vis — comment on commit 39d5cdfa191b2802bbdd84d8e47a9d2df2c090a1
File:  line 0
By kuk0:

not bad for a start, but we see that it will require some work...
i was thinking about what to do with the positions of the labels...
i think we can safely put the labels next to the nodes, but we should try to put as much labels as we can higher (ideally to the middle of the edge) the labels could be either next to the edge (as now) or even interrupting the edge (like this: o----- label -----o ); you can calculate the angle between a node and its sibling to see whether there is enough space
another comment: the nodes where the words end should be encircled because you can have two words where one is a prefix of the other, e.g., "bar" and "barman"... then not all the words end at leaves... (another possibility is to have an end-of-word symbol '$' which you add automatically at the end of each word... then at "bar" there would be two different branches: "$" and "man$"... this will be used in the suffix tree so i guess it could be introduced already with tries... it's your choice)