#18137: Centrality betweenness in Sage
-------------------------+-------------------------------------------------
       Reporter:         |        Owner:
  ncohen                 |       Status:  needs_work
           Type:         |    Milestone:  sage-6.6
  enhancement            |   Resolution:
       Priority:  major  |    Merged in:
      Component:  graph  |    Reviewers:
  theory                 |  Work issues:
       Keywords:         |       Commit:
        Authors:         |  c84caef2c24cf2a42bf802c6d2e829886fd74149
  Nathann Cohen          |     Stopgaps:
Report Upstream:  N/A    |
         Branch:         |
  public/18137           |
   Dependencies:         |
-------------------------+-------------------------------------------------
Changes (by dcoudert):

 * status:  needs_review => needs_work


Comment:

 One issue:
 {{{
 sage: G = Graph()
 sage: G.centrality_betweenness()
 ---------------------------------------------------------------------------
 ValueError                                Traceback (most recent call
 last)
 ...
 ValueError: bitset capacity must be greater than 0
 }}}

 Did you know that your code is also working for multi-graphs?
 {{{
 sage: G = Graph(multiedges=True)
 sage: G.add_edge(0,1)
 sage: G.add_edge(0,1)
 sage: G.add_edge(1,2)
 sage: G.add_edge(2,3)
 sage: G.add_edge(0,3)
 sage: G.centrality_betweenness(exact=1)
 {0: 2/9, 1: 2/9, 2: 1/9, 3: 1/9}
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/18137#comment:46>
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