Saturday, March 19, 2011

Linked list representation using dot language

As directed by the first post on Dot language, it can used in several other applications for representing diagrams with minimal effort(unlike paint or sophisticated draw tools). One of such applications I came across last week was to represent a linked list. A linked list can be viewed as a rank sorted graph on the horizontal than the vertical(the graph earlier described in the first post). The only major part where this system fails is when you need to specify some handles on the nodes, then they may not be exactly on the vertical as desired. I am working on this and if I get a solution will post it for the benefit of many in search of this answer.