Julen Parra - 2006-12-06

Hi, everybody,

I'm searching for some java library that deals with graph data structures, and it seems like it's a bit more difficult than I thought. So I ask here because it seems likely that for visualizing graphs some kind of graph data structure is used :o)

What I would mainly need is some java class where I could put relations in the form nodeA->nodeB (with associaded data), and after putting all my relations, being able to ask questions of the type:

Give me all the root nodes (nodes with no parent).
For this node give me all children
For this node give me all children that only reference this parent

etc.

I tend to believe that this kind of thing is general-purpose enough so that some open implementation of it exists, but I'm unable to find one. Any help or pointers would be much appreciated.

Thanks in advance.

Julen.