Just tried using this for a project last week. Whatever algorithm it uses for positioning nodes is terrible. You end up with a huge confusing spaghetti mess of a diagram.
I had the same problem until I realized that the order matters very much. You may want to try to move the code around a bit and see if the result is improved.
The good thing about open source is that you can improve on it for the good of all :)