#18839: Boost Dominator Tree
-------------------------------------+-------------------------------------
       Reporter:  borassi            |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.8
      Component:  graph theory       |   Resolution:
       Keywords:  Dominator tree,    |    Merged in:
  Boost                              |    Reviewers:
        Authors:  Michele Borassi    |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  7b72043f2af4fc29ece5e6aad5996a9a9a49539a
  u/borassi/boost_dominator_tree     |     Stopgaps:
   Dependencies:  #18811, #18564     |
-------------------------------------+-------------------------------------

Comment (by borassi):

 Hellooooooo!

 I have done it, but there is a problem: in order to obtain this result,
 `generic_graph` should import `boost_graph`, which imports
 `directed_graph`, which imports `generic_graph`, and I have cyclic
 dependencies. I tried to put

 {{{
 import types
 from sage.graphs.generic_graph import GenericGraph
 GenericGraph.dominator_tree = types.MethodType(dominator_tree, None,
 GenericGraph)
 }}}
 inside boost_graph, but it is not imported when Sage starts, so I have to
 import boost_graph before running dominator_tree (and I don't like it).
 Any suggestion?

 Replying to [comment:16 dcoudert]:


 > A good example is  `GenericGraph.diameter =
 types.MethodType(sage.graphs.distances_all_pairs.diameter, None,
 GenericGraph)`.
 > It has several arguments (e.g. `method='iFUB'`).

--
Ticket URL: <http://trac.sagemath.org/ticket/18839#comment:17>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to