#16395: adjacency_matrix raises error for large multigraphs
-------------------------------------+-------------------------------------
Reporter: lipshitz | Owner:
Type: defect | Status: needs_info
Priority: minor | Milestone: sage-6.3
Component: graph theory | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/lipshitz/ticket/16395 | ec8ebced3d73d124c10fabfd648b5033693f4382
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by lipshitz):
Replying to [comment:5 ncohen]:
> Could you test that the graph is not a multigraph instead of catching
the exception ?
>
> Nathann
Sure -- if you think that's better. My reason for doing it this way: if
someone later improves density() to work for multigraphs, adjacency_matrix
will then automatically use the improved code. (I imagine someone might
improve density() but not think to look at adjacency_matrix.) And trying
density() probably doesn't take much time.
Do you still prefer to test if it's a multigraph, rather than catch the
exception? If so, I'm happy to change it.
--
Ticket URL: <http://trac.sagemath.org/ticket/16395#comment:6>
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.