Changes to JGraphT in each version:
-
version 1.0.2 (under development):
- Added ID descripter to maven-assembly-plugin configuration to prevent a 'Assembly is incorrectly configured' error being thrown (contributed by Joris Kinable)
- Deleted all previously deprecated methods and general cleanup (contributed by Joris Kinable)
- Moved all importers/exporters from org.jgrapht.ext to org.jgrapht.io. This change allows users to use importers/exporters without the dependency on the various visualization libraries. (contributed by Dimitrios Michail)
- Added vertex coloring interface
VertexColoringAlgorithm
, as well as several greedy graph coloring algorithms (LargestDegreeFirstColoring
,RandomGreedyColoring
,SaturationDegreeColoring
,SmallestDegreeLastColoring
). The formerChromaticNumber
class is now deprecated, as well as some related classes in the experimental package. (contributed by Dimitrios Michail) - Extended the network analysis algorithms by adding closeness centrality computation (contributed by Dimitrios Michail)
- Added interface
StrongConnectivityAlgorithm
; Extracted common code of strong connectivity inspectors to abstract base class; added method which computes the graph condensation. (contributed by Dimitrios Michail) - Added interface
TSPAlgorithm
, Added 2-approximation algorithm for metric TSPTwoApproxMetricTSP
. The old implementationHamiltonianCycle
is now deprecated due to its reduced efficiency. (contributed by Dimitrios Michail) - Added a new, scalable
DOTImporter
which handles the full DOT specification including XML string identifiers. A dependency on the commons-lang3 package has been added to handle escaping/unescaping of strings efficiently; Updated antlr version to 4.6. (contributed by Dimitrios Michail)
-
version 1.0.1 (16-Jan-2017):
- Deleted all previously deprecated methods (cleanup contributed by Joris Kinable and Dimitrios Michail)
- Cleanup of main pom.xml; Added
CONTRIBUTING.md
(contributed by John Sichi) - Added Checkstyle plugin and rules; they are automatically executed by Travis (contributed by Dimitrios Michail)
- Unified graph export name providers using a common interface (contributed by Dimitrios Michail)
- Fix
GnmRandomGraphGenerator
bug in computation of maximum number of edges (contributed by Dimitrios Michail) - Added new demo class
GraphMLDemo
to demonstrate importing and exporting graphs in the GraphML format (contributed by Dimitrios Michail) - Added project badges (contributed by Daniel Gómez-Sánchez)
- Hide autogenerated classes of antlr (contributed by Dimitrios Michail)
- DOT-language import/export changes (contributed by Daniel Gómez-Sánchez)
- Clean up tests and warnings (contributed by Dimitrios Michail)
- Fixed GraphML importer xsd resolution bug (contributed by Dimitrios Michail, spotted by Peter Manning Jr.)
- Replaced VertexPair/UnorderedVertexPair with Pair/UnorderedPair (contributed by Dimitrios Michail)
- Clean up AbstractBaseGraph/Specifics dependencies (contributed by Dimitrios Michail)
GraphTests
has been reworked, extended with additional functionality, and moved from experimental to the core package (contributed by Dimitrios Michail and Barak Naveh)- a
IntegerVertexFactory
has been added to the test package to reduce code duplication (contributed by Dimitrios Michail) - 2 new 1/2-approximation algorithms (greedy algorithm and Drake and Hougardy path growing algorithm) have been added; matching algorithms have been moved to dedicated package (contributed by Dimitrios Michail)
- Added
HierholzerEulerianCycle
, a Linear time implementation of Hierholzer's algorithm to find a Eulerian Circuit in the graph. This class replaces the oldEulerianCircuit
implementation since it is significantly faster. (contributed by Dimitrios Michail) - Added methods for adding/deletion of specified edge in graph builders (contributed by Skuratovich Sergey)
- Fixed a NullPointerException caused by
GraphMLImport
when an attributed was associated with the graph itself (i.e. at the level); this could occur for instance with yED graphml instances. (reported by Tim Schultze, contributed by Dimitrios Michail) - Minor updates and fixes to demo (contributed by Dimitrios Michail)
- Removed underscore identifiers and refactored tests in
KuhnMunkresMinimalWeightBipartitePerfectMatchingTest
. (contributed by Szabolcs Besenyei) - All matching algorithms are now unified under a new
MatchingAlgorithm
interface; the oldWeightedMatchingAlgorithm
interface is now deprecated. (contributed by Dimitrios Michail) - Added Borůvka's algorithm for the computation of a minimum spanning tree (contributed by Dimitrios Michail)
- Revised spanning tree and spanner interfaces and bundled them under the alg.spanning package (contributed by Dimitrios Michail)
- Small improvements in
StopWatch
class (contributed by Dimitrios Michail) - Revised
Subgraph
,MaskSubgraph
and subclasses to use Java 8 features; incorporated a number of performance improvements. RevisedMaskSubgraph
uses Java 8 predicates instead of theMaskFunctor
interface. The latter interface is now deprecated. (contributed by Dimitrios Michail) - Added
GusfieldGomoryHuCutTree
,GusfieldEquivalentFlowTree
, andPadbergRaoOddMinimumCutset
(contributed by Joris Kinable, following up on a Gomory-Hu proposal from Mads Jensen) - Added support for inconsistent admissible heuristics in A* search (contributed by Joris Kinable)
- Added a
DIMACSExporter
which supports exporting graphs in various DIMACS formats (contributed by Dimitrios Michail) - Enforce valid nodes in
FibonacciHeap
; Fixed a bug which could cause an infinite loop in the Fibonacci heap consolidate() method. (contributed by Dimitrios Michail) - Revision of shortest path algorithms. Added interfaces
ShortestPathAlgorithm
andKShortestPathAlgorithm
, and bundled shortest path algorithms in dedicated package. Adjusted KShortestPaths returns an empty list instead of null if no path exists. (contributed by Dimitrios Michail) FlowdWarshall
now has support for multigraphs. Fixed diameter method now returns POSITIVE_INFINITY when a graph is disconnected. (contributed by Dimitrios Michail)GraphPath
supports zero edge paths (path consisting of 1 vertex). (contributed by Dimitrios Michail)DijkstraShortestPath
as well as several other shortest path classes can now return single-source shortest paths, using the traditional representation of a shortest path tree (contributed by Dimitrios Michail)- Added an implementation of Goldberg and Harrelson's ALT admissible heuristic for A* (contributed by Dimitrios Michail)
- Replaced the
ClosestFirstIterator
inDijkstraShortestPath
by a light-weight version of the iterator which significantly speeds up the shortest path computations. (contributed by Dimitrios Michail) - Added implementation of Larry Page's
PageRank
algorithm. (contributed by Dimitrios Michail) - Added faster transitive closure calculation for DAGs. (contributed by Martin Sturm)
-
version 1.0.0 (19-Sept-2016):
- Moved to JDK 1.8 (cleanup contributed by Joris Kinable)
- Fixes for
MaskSubgraph
, contributed by Andrew Gainer-Dewar - Optimized edge lookups (contributed by Joris Kinable)
- Use LinkedHashSet in
CycleDetector
(contributed by Benedikt Waldvogel) - Use unique OSGi bundle symbolic name for uber artifact (contributed by Christoph Zauner)
- Replace experimental GraphReader with
DIMACSImporter
(contributed by Joris Kinable) - Implement various graph utility methods (contributed by Christoph Zauner)
- Add getFirstHop and getLastHop to
FloydWarshallShortestPaths
(contributed by Joris Kinable) - Allow paths to be expressed in terms of vertices instead of edges; deprecate
GraphPathImpl
in favor of newGraphWalk
(contributed by Joris Kinable) - Weighted graph support in
GmlExporter
(contributed by Dimitrios Michail) - Add
RandomWalkIterator
(contributed by Assaf Mizrachi) - Add
GreedyMultiplicativeSpanner
(contributed by Dimitrios Michail) - Support undirected graphs in max flow algorithms (contributed by Joris Kinable)
- Fix for reading escaped quotes in
DOTImporter
(contributed by Victor Mikhaylov) - Add
BidirectionalDijkstraShortestPath
(contributed by Dimitrios Michail) - Add external path validator for
KShortestPaths
(contributed by Assaf Mizrachi) - Add
GmlImporter
(contributed by Dimitrios Michail) - Fixed bug in HopcroftKarpBipartiteMatching which caused the algorithm to occasionally throw a NullPointerException (contributed by Dimitrios Michail, bug reported by Nils Olberg)
- Fixed
AStarShortestPath
to use Object.equals (contributed by Joris Kinable, bug reported by Zgce) - Enhance
DirectedAcyclicGraph
to extend Iterable (contributed by Joris Kinable, suggested by Andrew Pennebaker) - Enhance
MinSourceSinkCut
to make max-flow implementation configurable (contributed by Joris Kinable, suggested by Roman Pearah) - Add new vertex cover algorithms and package (contributed by Joris Kinable and Nils Olberg)
- Improved GraphML support (contributed by Dimitrios Michail)
- Add common
GraphExporter
andGraphImporter
interfaces (contributed by Dimitrios Michail) - DOT importer id fix (contributed by Dimitrios Michail)
- Add
CSVExporter
andCSVImporter
(contributed by Dimitrios Michail) - Add
MinimumSTCutAlgorithm
(contributed by Joris Kinable) - Capture trivial paths in
AllDirectedPaths
(contributed by Andrew Gainer-Dewar) - Switch from Jalopy source code formatter to Eclipse, since Jalopy does not support java 8 (contributed by John Sichi)
- Fixed a bug in
RandomGraphGenerator
, reported by (@ckapop), which could cause an overflow when calculating the maximum number of edges allowed in a graph (contributed by Dimitrios Michail) - Added generics to code in test package (contributed by Dimitrios Michail)
- Fixed a bug in
PushRelabelMFImpl
, reported by Joris Kinable, which caused a NullPointerException whenever the network contained multiple components (contributed by Dimitrios Michail) - Fixed a bug in
MaximumFlowAlgorithmBase
: some vertices ended up with a null prototype vertex (contributed by Dimitrios Michail) - Use equals for compare to fix bug in
EdmondsBlossomShrinking
(contributed by Szabolcs Besenyei) - Reformat all file headers (contributed by Joris Kinable)
- Refactor and enhance random graph generators (contributed by Dimitrios Michail)
- Fix DirectedAcyclicGraph.removeAllVertices (contributed by Szabolcs Besenyei)
- Use Travis to enforce Javadoc correctness (contributed by Joris Kinable)
- Corrected all javadoc warnings (contributed by Dimitrios Michail)
-
version 0.9.2 (3-Apr-2016):
- Add
HawickJamesSimpleCycles
, contributed by Luiz Kill - Add
DOTImporter
, contributed by Wil Selwood - Optimize
FloydWarshallShortestPaths
, contributed by Mihhail Verhovtsov - Add VF2 isomorphism and subgraph isomorphism detection, contributed by Fabian Späh
- Remove old experimental isomorphism implementation
- Fix for empty graph input to
KuhnMunkresMinimalWeightBipartitePerfectMatching
, contributed by Szabolcs Besenyei - Fix for
EdmondsBlossomShrinking
, contributed by Alexey Kudinkin - Add
TransitiveReduction
, contributed by Christophe Thiebaud - Add
AStarShortestPath
, contributed by Joris Kinable, Jon Robinson, and Thomas Breitbart - More
FloydWarshallShortestPaths
optimizations, contributed by Joris Kinable - Add
MixedGraphUnion
andAsWeightedDirectedGraph
; fix UndirectedGraphUnion constructors; contributed by Joris Kinable - Add
GabowStrongConnectivityInspector
andKosarajuStrongConnectivityInspector
, contributed by Joris Kinable and Sarah Komla-Ebri - Add
PushRelabelMaximumFlow
; boostEdmondsKarpMaximumFlow
; addMaximumFlowAlgorithm
interface; addPair
andExtension
utility classes; optional seed parameter toRandomGraphGenerator
, contributed by Alexey Kudinkin - Add
MaximumWeightBipartiteMatching
, contributed by Graeme Ahokas - Osgify jgrapht-ext, contributed by Christoph Zauner
- Add
AllDirectedPaths
, contributed by Andrew Gainer-Dewar
- Add
-
version 0.9.1 (5-Apr-2015):
- Auto-generation of bundle manifest, contributed by Nicolas Fortin
- Travis CI configuration, contributed by Peter Goldstein
- TarjanLCA bugfix, contributed by Leo Crawford
- Add
SimpleGraphPath
, contributed by Rodrigo Lopez Dato - Add
NaiveLcaFinder
, contributed by Leo Crawford - Make getEdgeWeight throw NPE on null edge, suggested by Joris Kinable
- Clarify that shortest path length is weighted, per gjafachini
- Add DAG constructor that takes an edge factory, and make TarjanLCA constructor public, contributed by Anders Wallgren
- Fixed rounding error in graph generation, contributed by Siarhei
- Fixed Javadoc for
DirectedWeightedMultigraph
, noticed by Martin Lowinski - Use annotations to simplify test suites, contributed by Jan Altenbernd
- Add missing Override/Deprecated annotations, contributed by Jan Altenbernd
- Update maven-compiler-plugin version, contributed by Andrew Chen
- Add builder package, contributed by Andrew Chen
- Add CliqueMinimalSeparatorDecomposition, contributed by Florian Buenzli, Thomas Tschager, Tomas Hruz, and Philipp Hoppen
- Include vertex #toString value in excn message, contributed by Chris Wensel
- Open up Specifics to allow for custom backing containers, contributed by Chris Wensel
- Make abstract graph constructors protected, contributed by John Sichi
- Moved to JDK 1.7
-
version 0.9.0 (06-Dec-2013):
- Move to github for source control, and Apache Maven for build, contributed by Andreas Schnaiter, Owen Jacobson, and Isaac Kleinman.
- Add source/target vertices to edge events to fix sf.net bug 3486775, spotted by Frank Mori Hess.
- Add
EdmondsBlossomShrinking
algorithm, contributed by Alejandro R. Lopez del Huerto. - Fix empty diameter calculation in
FloydWarshallShortestPaths
, contributed by Ernst de Ridder (bug spotted by Jens Lehmann) - Add
HopcroftKarpBipartiteMatching
andMinSourceSinkCut
, contributed by Joris Kinable - Fix multiple bugs in
StoerWagnerMinimumCut
, contributed by Ernst de Ridder - Fix path weight bug in
FloydWarshallShortestPaths
, contributed by Michal Pasieka - Add
PrimMinimumSpanningTree
, contributed by Alexey Kudinkin - Add
DirectedWeightedPseudograph
, and fix 'DirectedMultigraph' contributed by Adam Gouge - More KSP bugfixes (spotted by Sebastian Mueller, fixed by Guillaume Boulmier)
- Add
KuhnMunkresMinimalWeightBipartitePerfectMatching
and associated generators+interfaces (contributed by Alexey Kudinkin) - Add cycle enumeration (contributed by Nikolay Ognyanov, originally from http://code.google.com/p/niographs/ )
- Update
removeAllEdges
to match specification (contributed by Graham Hill) - Add
TarjanLowestCommonAncestor
, contributed by Leo Crawford - Add
JGraphXAdapter
, contributed by Sebastian Hubenschmid and JeanYves Tinevez - Add LGPL/EPL dual licensing, coordinated by Oliver Kopp
- Refactoring for
DirectedAcyclicGraph
, contributed by Javier Gutierrez
-
version 0.8.3 (20-Jan-2012):
- fix regression in
DOTExporter
inadvertently introduced by0.8.2
changes. - Add
GridGraphGenerator
, contributed by Assaf Mizrachi. - Return coloring from ChromaticNumber, contributed by Harshal Vora.
- Fix bugs in KSP, contributed by Guillaume Boulmier; note that these bugfixes worsen the running time.
- Fix an object identity bug in CycleDetector, contributed by Matt Sarjent. -Add StoerWagnerMinimumCut, contributed by Robby McKilliam.
- Fix
MANIFEST.MF
, spotted by Olly. - Make
FloydWarshallShortestPaths.getShortestPaths
unidirectional, contributed by Yuriy Nakonechnyy.
- fix regression in
-
version 0.8.2 (27-Nov-2010):
- Clean up
FibonacciHeapNode
constructor, as suggested by Johan Henriksson. - Optimize and enhance
FloydWarshallShortestPaths
, contributed by Soren Davidsen. - Optimize
ChromaticNumber
,pointed out by gpaschos@netscape.net. - Add unit test for
FloydWarshallShortestPaths
for bug noticed by Andrea Pagani. - Add vertex factory validation to
RandomGraphGenerator
to prevent a confusing problem encountered by Andrea Pagani. - Add
KruskalMinimumSpanningTree
andUnionFind
, contributed by Tom Conerly. - Add attributes to
DOTExporter
, based on suggestion from Chris Lott. - Fix inefficient assertion in
TopologicalOrderIterator
, spotted by Peter Lawrey. - Fix induced subgraph bug with addition of edge to underlying graph, contributed by Michele Mancioppi.
- Make
getEdgeWeight
delegate toDefaultWeightedEdge.getWeight
, spotted by Michael Lindig. - Add maven support, contributed by Adrian Marte.
- Clean up
-
version 0.8.1 (3-Jul-2009):
- Enhanced
GmlExporter
with customized labels and ID's, contributed by Trevor Harmon. - Added new algorithms
HamiltonianCycle
,ChromaticNumber
andEulerianCircuit
, plus new generatorsHyperCubeGraphGenerator
,StarGraphGenerator
, andCompleteBipartiteGraphGenerator
, all contributed by Andrew Newell. - Fix bug with vertices which are equals but not identity-same in graphs allowing loops, spotted by Michael Michaud.
- Fix bug in
EquivalenceIsomorphismInspector
, reported by Tim Engler. - AddtoString
for shortest paths wrapper, spotted by Achim Beutel. - Add
FloydWarshallShortestPaths
, contributed by Tom Larkworthy. - Enhance
DijskstraShortestPath
to supportGraphPath
interface. - Add
GraphUnion
(with directed and undirected variants), contributed by Ilya Razenshteyn.
- Enhanced
-
version 0.8.0 (Sept-2008):
- Moved to JDK 1.6.
- Fixed problem with
RandomGraphGenerator
reported by Mario Rossi. - Added
CompleteGraphGenerator
, contributed by Tim Shearouse. - Fixed
FibonacciHeap
performance problem reported by Jason Lenderman. - Made
DotExporter
reject illegal vertex ID's, contributed by Holger Brandl. - Fixed bogus assertion for topological sort over empty graph, spotted by Harris Lin.
- Added scale-free graph generator and
EdmondsKarpMaximumFlow
, contributed by Ilya Razenshteyn. - Added
DirectedAcyclicGraph
, contributed by Peter Giles. - Added protected
getWeight
accessor toDefaultWeightedEdge
, likewisegetSource
andgetTarget
onDefaultEdge
. - Optimized iterators to skip calling event firing routines when there are no listeners, and used
ArrayDeque
in a number of places, per suggestion from Ross Judson. - Improvements to
StrongConnectivityInspector
and OSGi bundle support contributed by Christian Soltenborn.
-
version 0.7.3 (Jan-2008):
- Patch to
JGraphModelAdapter.removeVertex
provided by Hookahey. - Added
ParanoidGraph
. - Removed obsolete
ArrayUtil
(spotted by Boente). - Added
GraphPath
, and used it to fix mistake in0.7.2
(k-shortest-paths was returning a private data structure, as discovered by numerous users). - Fixed
EdgeReversedGraph.getAllEdges
(spotted by neumanns@users.sf.net). - Fixed incorrect assertion in
TopologicalOrderIterator
constructor. - Enabled assertions in JUnit tests.
- Fixed NPE in
BellmanFordShortestPath.getCost
. - Fixed a few problems spotted by findbugs.
- Patch to
-
version 0.7.2 (Sept-2007):
- Added
TransitiveClosure
, contributed by Vinayak Borkar. - Added biconnectivity/cutpoint inspection, k-shortest-paths, and masked subgraphs, all contributed by Guillaume Boulmier.
- Made some Graphs helper methods even more generic, as suggested by JongSoo.
- Test and fixes for (Directed)NeighborIndex submitted by Andrew Berman.
- Added
AsUnweighted(Directed)Graph
andAsWeightedGraph
, contributed by Lucas Scharenbroich. - Dropped support for retroweaver.
- Added
-
version 0.7.1 (March-2007):
- Fixed some bugs in
CycleDetector
reported by Khanh Vu, and added more testcases for it. - Fixed bugs in
DepthFirstIterator
reported by Welson Sun, and added WHITE/GRAY/BLACK states andvertexFinished
listener event. - Exposed
Subgraph.getBase()
, and parameterizedSubgraph
on graph type (per suggestion from Aaron Harnly). - Added
EdgeReversedView
. - Added
GmlExporter
(contributed by Dimitrios Michail), plusDOTExporter
andGraphMLExporter
(both contributed by Trevor Harmon). - Enhanced
TopologicalOrderIterator
to take an optional Queue parameter for tie-breaking (per suggestion from JongSoo Park). - Fixed some documentation errors reported by Guillaume Boulmier.
- Fixed some bugs in
-
version 0.7.0 (July-2006) :
- Upgraded to JDK 1.5 (generics support added by Christian Hammer with help from Hartmut Benz and John Sichi).
- Added
(Directed)NeighborIndex
andMatrixExporter
, contributed by Charles Fry. - Added BellmanFord, contributed by Guillaume Boulmier of France Telecom.
- Removed never-used
LabeledElement
. - Renamed package from
org._3pq.jgrapht
toorg.jgrapht
. - Made various breaking change to interfaces; edge collections are now Sets, not Lists.
- Added Touchgraph converter, contributed by Carl Anderson
-
version 0.6.0 (July-2005) :
- Upgraded to JDK 1.4, taking advantage of its new linked hash set/map containers to make edge/vertex set order-deterministic
- Added support for custom edge lists.
- Fixed various serialization and Subgraph issues.
- Added to
JGraphModelAdapter
support for JGraph's "dangling" edges; its constructors have slightly changed and now forbidnull
values. - Improved interface to
DijskstraShortestPath
, and added radius support toClosestFirstIterator
. - Added new
StrongConnectivityInspector
algorithm (contributed by Christian Soltenborn) andTopologicalOrderIterator
(contributed by Marden Neubert). - Deleted deprecated
TraverseUtils
. - Upgraded to JGraph
5.6.1.1
.
-
version 0.5.3 (June-2004) :
- Removed Subgraph verification of element's identity to base graph, upgraded to JGraph 4.0
- Added the
VisioExporter
which was contributed by Avner Linder - minor bug fixes and improvements.
-
version 0.5.2 (March-2004) :
- Serialization improvements, fixes to subgraphs and listenable graphs
- added support for JGraph > JGraphT change propagation for JGraph adapter (contributed by Erik Postma)
- upgraded to JGraph 3.1, various bug fixes and improvements.
-
version 0.5.1 (November-2003) :
- Semantics of
Graph.clone()
has changed, please check the documentation if you're using it. - Added Dijkstra's shortest path, vertex cover approximations, new graph generation framework
- upgraded to JGraph 3.0
- various bug fixes and API improvements.
- Semantics of
-
version 0.5.0 (14-Aug-2003) :
- a new connectivity inspector added
- edge API refactored to be simpler
- improved ant build
- improved event model
- all known bugs were fixed, documentation clarifications, other small improvements.
- API of 0.5.0 is not 100% backward compatible with 0.4.1 but upgrade is simple and straightforward.
-
version 0.4.1 (05-Aug-2003) :
- A new adapter to JGraph that provides graph visualizations, new depth-first and breadth-first iteration algorithms
- various bug fixes and refactoring
- moved unit-tests to a separate folder hierarchy and added more unit-tests.
-
version 0.4.0 (July-2003) : Initial public release.