#7600: Vertex cover
----------------------------+-----------------------------------------------
Reporter: ncohen | Owner: rlm
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-4.3.1
Component: graph theory | Keywords:
Work_issues: | Author:
Upstream: N/A | Reviewer:
Merged: |
----------------------------+-----------------------------------------------
Changes (by rlm):
* status: needs_review => needs_work
Comment:
oops:
{{{
sage: vc2 = g.vertex_cover(algorithm="Cliquer")
---------------------------------------------------------------------------
UnboundLocalError Traceback (most recent call
last)
/Users/rlmill/.sage/temp/rlm_book.local/98560/_Users_rlmill__sage_init_sage_0.py
in <module>()
/Users/rlmill/sage-4.3.rc0/local/lib/python2.6/site-
packages/sage/graphs/graph.pyc in vertex_cover(self, algorithm,
value_only, log)
3325 return self.order()-len(independent)
3326 else:
-> 3327 return
set(g.vertices()).difference(set(independent))
3328
3329 elif algorithm=="MILP":
UnboundLocalError: local variable 'g' referenced before assignment
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7600#comment:7>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.