Skip to content

igraph 0.11.2

Compare
Choose a tag to compare
@ntamas ntamas released this 12 Oct 21:28
· 231 commits to main since this release
a249b9a

Added

  • python-igraph is now tested in Python 3.12.

  • Added weights=... keyword argument to Graph.layout_kamada_kawai().

Changed

  • The matplotlib plotting infrastructure underwent major surgery and is now able to show consistent vertex and edge drawings at any level of zoom, including with animations, and for any aspect ratio.
  • As a consequence of the restructuring at the previous point, vertex sizes are now specified in figure points and are not affected by axis limits or zoom. With the current conventions, vertex_size=25 is a reasonable size for igraph.plot.
  • As another consequence of the above, vertex labels now support offsets from the vertex center, in figure point units.
  • As another consequence of the above, self loops are now looking better and their size can be controlled using the edge_loop_size argument in igraph.plot.
  • As another consequence of the above, if using the matplotlib backend when plotting a graph, igraph.plot now does not return the Axes anymore. Instead, it returns a container artist called GraphArtist, which contains as children the elements of the graph plot: a VertexCollection for the vertices, and EdgeCollection for the edges, and so on. These objects can be used to modify the plot after the initial rendering, e.g. inside a Jupyter notebook, to fine tune the appearance of the plot. While documentation on specific graphic elements is still scant, more descriptive examples will follow in the future.

Fixed

  • Fixed drawing order of vertices in the Plotly backend (#691).

  • Fixed plotting of null graphs with the Matplotlib backend.

Removed

  • Dropped support for Python 3.7 as it has reached its end of life.