Hello, I’m using Sagemath to filter some specific graphs from the general graphs using these codes:
“I = graphs(n)
for G in I:
if G.is_tree():
if (G.cartesian_product(G)).matching(value_only = True) == n*n/2:
G.show()”
The problem is that there are a large number of graphs to filter particularly when the number of vertices is greater than 16. This takes a long time so. I was wondering if it is possible to create a library with those graphs I received from the code. Then every time I need to use those graphs I can get them from the library and don’t need to run the code all over again.