Skip to content

Migration guide v1.6.0

Benoît Jeanson edited this page Sep 24, 2020 · 5 revisions

Upgrade jgrapht version

In this release, jgrapht version has been updated from version 1.0.1 to 1.4.0. Since jgrapht has broken the API between these versions, projects using powsybl and jgrapht should also update their version. Note especially the following API breaking changes:

  • UndirectedGraph interface has been deleted; e.g. PseudoGraph inherits of Graph (through AbstractBaseGraph) instead of UndirectedGraph.
  • Connectivity classes which were in package org.jgrapht.alg (like ConnectivityInspector) are now in package org.jgrapht.alg.connectivity.

Evolutions in the PositionFinder implementations

  • PositionFree is removed, please use PositionByClustering instead
  • handleShunt option is available in buildLayout to integrate shunts in the positioning algorithm. By default it is set to false in BlockOrganizer to ensure that it does not impact with the explicit orders of the cells when using PositionFromExtension, but for PositionByClustering, the result is significantly improved when set true.