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
JGraphT is a free Java graph library that provides mathematical graph-theory objects and algorithms. JGraphT supports various types of graphs including: * directed and undirected graphs. * graphs with weighted / unweighted / labeled or any user-defined edges.
The Java Graph class relies on an underlying Vertex class with the following behaviors: a constructor that sets data to the passed in inputData and sets edges to an empty ArrayList. an . addEdge() method that takes a vertex and weight and adds an edge to edges.
In Java, plotting of graph is done by using several topics of core Java. For plotting, we use swing, awt, and awt. geom. We use Swing package to use Jlabel, JButtons, and JPanel in our program.
A graph is a mathematical concept consisting of nodes and edges. Graphs are used throughout computer science and especially machine learning. The Infer.Net graph library provides data structures for representing graphs and algorithms for operating on graphs.
JUNG
Not in the standard libraries, but there are lots of open source options. JGraphT looks like it probably has what you need.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With