Sorry Daniel, I sent the post unintentionally without had finished it yet... So, I sent another post afterwards.
The else part just get the two vertexes involved, the "from" and the "to" and then create the edge and return the edge just created.
this function returns the edge, and another function set a property to this.
My problem is really verify if a edge exists, and return it as as i described. even when there's no edges on graph, it takes a lot of time to answer to e.hasNext(), and more time to return the e.next() when there are few edges on it...
I'll try what you put forward, just answering now to complete my post, thought that the second and complete post would be published.
Cheers.
Icaro Ponce