tags:

views:

157

answers:

4

Is there a representation of a graph in Java standard libraries, like there is in the boost library in C++? Is there a graph representation which is a standard in the business?

Edit: by graph, I mean of course the mathematical concept in computer science - graph theory

A: 

Not in the standard libraries that ship with the JDK.

JFreeChart is a very nice alternative.

I don't know about "standard" for node and graph, but I think AT&T's graphviz is a terrific way to do it. There's a nice example of how to call it in Java, too.

duffymo
-1, this doesn't even remotely answer the question. The OP asked about a graph library. JFreeChart is a chart library. (Hint: the name kinda gives it away.)
Jörg W Mittag
The addition does. And "graph" means one thing to a computer scientist and something else to a person who works in engineering and physics. Your biases are showing, Jorg.
duffymo
A: 

Not in the standard libraries, but there are lots of open source options. JGraphT looks like it probably has what you need.

Bill the Lizard
+1  A: 

JUNG

mr popo
I had not looked at JUNG until now but quick glance at the API looks promising. It uses generics rather than having first-class types for Nodes and Edges. This is important when you are dealing with a moderately large volume of data. Massive volumes of data (where everything cannot/should not be maintained in RAM) would require additional limitations or abstractions at the API level.
Dilum Ranatunga
A: 

I don't think there is a Graph structure in stander library tho. You can build your own customized graph for your use.

ryf9059