#14712: An Hypergraph class for visualization (pretty basic one !)
---------------------------------+------------------------------------------
       Reporter:  ncohen         |         Owner:  tbd             
           Type:  enhancement    |        Status:  needs_work      
       Priority:  major          |     Milestone:  sage-5.11       
      Component:  graph theory   |    Resolution:                  
       Keywords:                 |   Work issues:                  
Report Upstream:  N/A            |     Reviewers:  Travis Scrimshaw
        Authors:  Nathann Cohen  |     Merged in:                  
   Dependencies:                 |      Stopgaps:                  
---------------------------------+------------------------------------------
Changes (by tscrim):

  * status:  needs_review => needs_work


Comment:

 The warning looks okay, but look at this hypergraph:
 {{{
 sage: H = Hypergraph([{1,2,3},{2,3,4},{3,4,5},{6,8},{7}])
 sage: view(H)
 }}}
 I don't see an edge between 6 and 8. Also I get the following:
 {{{
 sage: H = Hypergraph([{1,2}])
 sage: view(H)
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)
 <ipython-input-13-b92aa03e5aba> in <module>()
 ----> 1 view(H)
 ...
 /home/travis/sage-5.10.rc1/local/lib/python2.7/site-
 packages/sage/graphs/hypergraph.pyc in _latex_(self)
     232             # "center", i.e. the vertex representing the set s
     233             cx,cy = pos[s]
 --> 234             s = map(lambda x:pos[x],s)
     235             s = sorted(s, key = lambda (x,y) : arctan2(x-cx,y-cy))
     236

 TypeError: argument 2 to map() must support iteration
 }}}
 so something isn't quite working (similarly for any one set of vertices).

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14712#comment:14>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to