Hi Szabó,
Please direct all questions to the mailing list (not me personally).
Here is what you are looking for:
http://www.jgrapht.org/javadoc/org/jgrapht/Graph.html#getEdgeSource(E)
Note that JGraphT already includes a BFS:
http://www.jgrapht.org/javadoc/org/jgrapht/traverse/BreadthFirstIterator.html
JVS
Szabó Tamás wrote:
> Hi!
>
> I just wanted to try your JGrapht library. I wanted to created a class
> which extends DefaultDirectedGraph<Node<V>, DefaultEdge>.
> Node is also my class. How is it possible to get the two endpoints of an
> edge?
> I want to write a breadth first search algorithm.
> Thank you for your help and props for the library!
>
> Best wishes,
> Tamas Szabo
>
|