Expected behavior is that the draw_networkx_nodes function returns a matplotlib PathCollection object. This is the previous behavior of the function and is what the docstring reports: Returns ----- ...