A script that can create a chess tree from an EPD file Is there any script (any language) that can make a chess tree from an EPD file? Or what algorithm (any example) should be use to create it on my own?

I am looking for one like the Chessbase opening tree window. The EPD evalulation should be such that it is sorted by eval, but how I tell comp what position is first and what position is next one. 

EDIT:
tree example
Not exactly. Both Chess Position Trainer and Chess Openings Wizard (the successor of Bookup) can create a tree manually or importing a PGN, export the positions to EPD, and import the evaluations from EPD, but won't create positions from an EPD, so they can't create trees from EPD.