id summary reporter owner description type status priority milestone component resolution keywords cc merged author reviewer upstream work_issues branch commit dependencies stopgaps
15681 Name of immutable graphs ncohen "Travis noticed in #15669 that immutable graphs were nameless. That's terrible.
{{{
sage: graphs.PetersenGraph()
Petersen graph: Graph on 10 vertices
sage: Graph(graphs.PetersenGraph(),immutable=True)
Graph on 10 vertices
}}}
This patch fixes it. So doing, we now store the `name` attribute in the Python graph itself and not in the backend, where it does not really belong. This thing is for storing the graph data, not fancy attributes !
New behaviour :
{{{
sage: graphs.PetersenGraph()
Petersen graph: Graph on 10 vertices
sage: Graph(graphs.PetersenGraph(),immutable=True)
Petersen graph: Graph on 10 vertices
}}}
This patch is based upon #15623, because God made it that we will have to pay the Poset's `._immutable` hack until #15623 is merged `:-P`
Nathann" defect closed major sage-6.2 graph theory fixed SimonKing tscrim Nathann Cohen Travis Scrimshaw N/A u/tscrim/ticket/15681 81fc8a472a2636acfaeaf132b085878f5ec3674f #15623