#12653 closed enhancement (fixed)
Add support for DiGraph(<dictionary of iterables>)
Reported by: | Nicolas M. Thiéry | Owned by: | jason, ncohen, rlm |
---|---|---|---|
Priority: | major | Milestone: | sage-5.0 |
Component: | graph theory | Keywords: | |
Cc: | Sage Combinat CC user | Merged in: | sage-5.0.beta11 |
Authors: | Nicolas M. Thiéry | Reviewers: | David Loeffler |
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | Stopgaps: |
Description
Allow for:
sage: g = DiGraph({0:(1,2,3), 2:(4)}); g Digraph on 5 vertices
Currently this is either not accepted, or gives an nonsensical output:
sage: DiGraph({0:set([1,2,3]), 2:set([4])}).edges() [(0, 1, {0: {}}), (0, 2, {0: {}}), (0, 3, {0: {}}), (2, 4, {0: {}})]
Attachments (1)
Change History (9)
comment:1 Changed 11 years ago by
Status: | new → needs_review |
---|---|
Summary: | Add support for DiGraph(<list of iterable>) → Add support for DiGraph(<list of iterables>) |
comment:2 Changed 11 years ago by
Summary: | Add support for DiGraph(<list of iterables>) → Add support for DiGraph(<dictionary of iterables>) |
---|
Changed 11 years ago by
Attachment: | trac_12653-graph_from_dictionary_of_iterables-nt.patch added |
---|
comment:3 Changed 11 years ago by
Reviewers: | → David Loeffler |
---|---|
Status: | needs_review → positive_review |
comment:4 Changed 11 years ago by
Authors: | → Nicolas M. Thiery |
---|
comment:6 Changed 11 years ago by
For the record: I had a look at the "apply failed" on 5.0.beta8, and it's simply due to a network error during the download of the patch (I guess that was when trac was down the other day). The patch does apply smoothly (also on 5.0.beta10).
comment:7 Changed 11 years ago by
Merged in: | → sage-5.0.beta11 |
---|---|
Resolution: | → fixed |
Status: | positive_review → closed |
comment:8 Changed 10 years ago by
Authors: | Nicolas M. Thiery → Nicolas M. Thiéry |
---|
Note: See
TracTickets for help on using
tickets.
Note: #12518 currently depends on this patch (but it could use some other mean). See discussion on sage-combinat-devel:
https://groups.google.com/forum/?fromgroups#!topic/sage-combinat-devel/z3yiohqFf88