I need a way to get all the spanning trees of a given graph in Python. I'm using networkx, it can get the minimum weight tree, but I need all the possible spanning trees (as a list, or generator, or whatever). Is there a straightforward way to do so?
EDIT: To clarify, I know it's computationally expensive, I only need it for small graphs (7-10 vertices at most).