This repository was archived by the owner on Jan 30, 2023. It is now read-only.
Commit a62f35e
Trac #19973: More trouble with immutable graphs
Here is a fix to a few cases where things fail with immutable graphs due
to `subgraph` preserving the mutability of the graph. The affected
methods are `traveling_salesman_problem` (and then also `is_hamiltonian`
and `hamiltonian_cycle`) and `is_clique` with the parameter
`directed_clique=True`.
These problems have either been missed, or, more likely, introduced in
#19526.
URL: http://trac.sagemath.org/19973
Reported by: jaanos
Ticket author(s): Janoš Vidali
Reviewer(s): Nathann Cohen1 file changed
+10
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7027 | 7027 | | |
7028 | 7028 | | |
7029 | 7029 | | |
7030 | | - | |
| 7030 | + | |
7031 | 7031 | | |
7032 | 7032 | | |
| 7033 | + | |
| 7034 | + | |
7033 | 7035 | | |
7034 | 7036 | | |
7035 | 7037 | | |
7036 | 7038 | | |
7037 | 7039 | | |
7038 | | - | |
| 7040 | + | |
7039 | 7041 | | |
7040 | 7042 | | |
| 7043 | + | |
| 7044 | + | |
7041 | 7045 | | |
7042 | 7046 | | |
7043 | 7047 | | |
| |||
7216 | 7220 | | |
7217 | 7221 | | |
7218 | 7222 | | |
7219 | | - | |
| 7223 | + | |
7220 | 7224 | | |
7221 | 7225 | | |
| 7226 | + | |
| 7227 | + | |
7222 | 7228 | | |
7223 | 7229 | | |
7224 | 7230 | | |
| |||
12549 | 12555 | | |
12550 | 12556 | | |
12551 | 12557 | | |
12552 | | - | |
| 12558 | + | |
12553 | 12559 | | |
12554 | 12560 | | |
12555 | 12561 | | |
| |||
0 commit comments