igraph 0.11.2
Added
-
python-igraph
is now tested in Python 3.12. -
Added
weights=...
keyword argument toGraph.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 forigraph.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 inigraph.plot
. - As another consequence of the above, if using the
matplotlib
backend when plotting a graph,igraph.plot
now does not return theAxes
anymore. Instead, it returns a container artist calledGraphArtist
, which contains as children the elements of the graph plot: aVertexCollection
for the vertices, andEdgeCollection
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.