user21255: 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


user1766: I have seen two softwares that does what you wish. Chess Position Trainer is one of them. The other is bookup.
Those softwares reads games in pgn and files containing epd positions with its evaluations in centipawns.  This files contains the leaf nodes positions, generated by Chess Position Trainer for instance. You later analyze the epd file. 
I use "GradualTest ver. 2.6" for this purpose. This program feeds the positions to an engine and writes the results to another file. I import the resulting file and the evaluations are added at the leaf positions. Later, the program propagates the valuations to the upstream positions, up to the root, applying the minimax algorithm.
Both programs are the best I have seen. 

user21567: 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.

21255: <p>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?</p>

<p>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. </p>

<p>EDIT:
tree example
<a href="https://i.stack.imgur.com/GhZhw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GhZhw.png" alt="enter image description here"></a></p>
 1766: <p>I have seen two softwares that does what you wish. <a href="http://www.chesspositiontrainer.com/" rel="nofollow noreferrer">Chess Position Trainer</a> is one of them. The other is <a href="http://www.bookup.com" rel="nofollow noreferrer">bookup</a>.</p>

<p>Those softwares reads games in pgn and files containing epd positions with its evaluations in centipawns.  This files contains the leaf nodes positions, generated by Chess Position Trainer for instance. You later analyze the epd file. </p>

<p>I use "GradualTest ver. 2.6" for this purpose. This program feeds the positions to an engine and writes the results to another file. I import the resulting file and the evaluations are added at the leaf positions. Later, the program propagates the valuations to the upstream positions, up to the root, applying the minimax algorithm.</p>

<p>Both programs are the best I have seen. </p>
 21567: <p>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.</p>
