Opened 5 years ago

Closed 2 years ago

#17340 closed defect (fixed)

can't plot immutable graphs

Reported by: kcrisman Owned by:
Priority: major Milestone: sage-8.3
Component: graph theory Keywords: easy
Cc: Merged in:
Authors: Frédéric Chapoton Reviewers: David Coudert
Report Upstream: N/A Work issues:
Branch: 05f0f53 (Commits) Commit: 05f0f5366c0719a5b9201c44ce4eb3dae8ddc2c4
Dependencies: Stopgaps:

Description (last modified by kcrisman)

sage: sage: Graph({0:[0]},immutable=True).show()
NotImplementedError: An immutable graph does not change name

Apparently the code for plotting makes some graph that is supposed to be a copy of it, but then with a new name, which is verboten.

Change History (5)

comment:1 Changed 5 years ago by kcrisman

  • Description modified (diff)

comment:2 Changed 2 years ago by chapoton

  • Authors set to Frédéric Chapoton
  • Branch set to u/chapoton/17340
  • Commit set to 05f0f5366c0719a5b9201c44ce4eb3dae8ddc2c4
  • Keywords easy added
  • Status changed from new to needs_review

New commits:

05f0f53trac 17340 add a check that one can plot immutable graphs

comment:3 Changed 2 years ago by chapoton

  • Milestone changed from sage-6.4 to sage-8.3

green bot, please review

comment:4 Changed 2 years ago by dcoudert

  • Reviewers set to David Coudert
  • Status changed from needs_review to positive_review

Easy and useful patch to prevent facing this issue again.

comment:5 Changed 2 years ago by vbraun

  • Branch changed from u/chapoton/17340 to 05f0f5366c0719a5b9201c44ce4eb3dae8ddc2c4
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.