The graphs returned by the Nexus parser are instances that implement the org.jgrapht.UndirectedGraph interface. Undirected graphs have no root.

cheers,
Richard

On 30 Oct 2009, at 21:14, Tiago Antão wrote:

Hi,

I have been trying to use biojava to parse some trees on nexus files
and I have a small doubt:
If there is a rooted tree, how can one know what is the root vertex in
the weighted graph (JGraphT)?
I understand that there is no root if the tree is unrooted, but in
case it is rooted, how to determine the vertex?

Many thanks,
Tiago

--
"The hottest places in hell are reserved for those who, in times of
moral crisis, maintain a neutrality." - Dante
_______________________________________________
Biojava-l mailing list  -  [email protected]
http://lists.open-bio.org/mailman/listinfo/biojava-l

--
Richard Holland, BSc MBCS
Operations and Delivery Director, Eagle Genomics Ltd
T: +44 (0)1223 654481 ext 3 | E: [email protected]
http://www.eaglegenomics.com/


_______________________________________________
Biojava-l mailing list  -  [email protected]
http://lists.open-bio.org/mailman/listinfo/biojava-l

Reply via email to