Skip to content

Comments

remove some deprecated stuff in topology/#41406

Merged
vbraun merged 3 commits intosagemath:developfrom
fchapoton:deprec_topology_2026
Jan 14, 2026
Merged

remove some deprecated stuff in topology/#41406
vbraun merged 3 commits intosagemath:developfrom
fchapoton:deprec_topology_2026

Conversation

@fchapoton
Copy link
Contributor

after
#37922 ; Closed Date: 2024-05-25
#38103 ; Closed Date: 2024-06-09

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.

@github-actions
Copy link

github-actions bot commented Jan 6, 2026

Documentation preview for this PR (built with commit 2ac3168; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

"""
v = [self._vertex_dictionary[i[0]] for i in self.domain().faces()[0]]
return all(v.count(i) <= 1 for i in v)
return all(v.count(i) <= 1 for i in v) # todo better
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some alternative solutions with better time complexity:

  • sort v and then check whether v[i] != v[i+1] for all I
  • compare len(v) == len(set(v))

Copy link
Contributor

@dcoudert dcoudert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

vbraun pushed a commit to vbraun/sage that referenced this pull request Jan 13, 2026
sagemathgh-41406: remove some deprecated stuff in topology/
    
after
sagemath#37922 ; Closed Date: 2024-05-25
sagemath#38103 ; Closed Date: 2024-06-09

### 📝 Checklist

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
    
URL: sagemath#41406
Reported by: Frédéric Chapoton
Reviewer(s): David Coudert
@vbraun vbraun merged commit 58c04bf into sagemath:develop Jan 14, 2026
23 of 24 checks passed
@fchapoton fchapoton deleted the deprec_topology_2026 branch January 14, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants