Changes between Version 6 and Version 10 of Ticket #13917
- Timestamp:
- 06/05/13 14:54:47 (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #13917 – Description
v6 v10 6 6 sage: gn = g.networkx_graph() 7 7 sage: %timeit list(networkx.find_cliques(gn)) 8 10 loops, best of 3: 59.9ms per loop8 10 loops, best of 3: 48.8 ms per loop 9 9 sage: from sage.graphs.independent_sets import IndependentSets 10 10 sage: %timeit list(IndependentSets(g,complement=True, maximal = True)) 11 10 0 loops, best of 3: 19.7ms per loop11 10 loops, best of 3: 20.8 ms per loop 12 12 sage: %timeit IndependentSets(g,complement=True, maximal = True).cardinality() 13 100 loops, best of 3: 1 7.6ms per loop13 100 loops, best of 3: 19 ms per loop 14 14 }}} 15 15 16 Either way, this patch implements a `sage.graphs.independent_set` module that can list/count (possibly maximal) independent sets in a small graph (<64 vertices). 17 18 And count them. 16 Either way, this patch implements a `sage.graphs.independent_set` module that can list/count (possibly maximal) independent sets. 19 17 20 18 Anyway, don't hesitate to tell me that this patch is useless if you feel like it. I'm not *that* convinced either.