#7378: Subdivide edges in a graph
----------------------------+-----------------------------------------------
Reporter: ncohen | Owner: jason
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.4
Component: graph theory | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
----------------------------+-----------------------------------------------
Description changed by mvngu:
Old description:
> It is often useful to subdivide the edges of a graph, so there should be
> a function in Sage for this.
>
> When an edge e between u and v is subdivided in a DiGraph, perhaps the
> best thing to do would be to name the new vertices as (e, 0), (e, 1), (e,
> 2), etc ...
>
> We are left with a similar problem concerning the Graphs and here I have
> to admit I do not know which name to use without inducing some
> orientation..
>
> This being said, it has to be done ! :-)
>
> Nathann
New description:
It is often useful to subdivide the edges of a graph, so there should be a
function in Sage for this.
When an edge e between u and v is subdivided in a DiGraph, perhaps the
best thing to do would be to name the new vertices as (e, 0), (e, 1), (e,
2), etc ...
We are left with a similar problem concerning the Graphs and here I have
to admit I do not know which name to use without inducing some
orientation..
This being said, it has to be done ! :-)
This ticket might conflict with #7608. The patch at #7608 makes a lot of
changes to `sage/graphs/generic_graph.py`, a module that is also touched
by ncohen's patch on this ticket.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7378#comment:4>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.