#7853: block_and_cut_vertices is inconsistent when graph has one vertex
----------------------------+-----------------------------------------------
Reporter: jason | Owner: rlm
Type: defect | Status: new
Priority: major | Milestone: sage-4.3.1
Component: graph theory | Keywords:
Work_issues: | Author:
Upstream: N/A | Reviewer:
Merged: |
----------------------------+-----------------------------------------------
Currently, block_and_cut_vertices says that the vertex in a single-vertex
graph is a cut vertex:
{{{
sage: Graph(1).blocks_and_cut_vertices()
([0], [0])
}}}
According to the definition of cut vertices given in the documentation of
the function, a cut vertex, when removed, increases the connected
components of the graph. Either that documentation should be changed to
mention a corner case, or (preferably), the above computation should look
like:
{{{
sage: Graph(1).blocks_and_cut_vertices()
([0], [])
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7853>
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.