The layout/rendering of the graphs isn't interesting to me, but parsing a SQL statement and extracting the relationship data is.