Skip to content

Conversation

@mantepse
Copy link
Contributor

@mantepse mantepse commented Sep 30, 2025

To achieve better consistency, we replace num_verts, num_edges and num_faces with n_vertices, n_edges and n_faces also in the codebase.

num_verts, num_edges and num_faces remain aliases for backwards compatibility.

dependencies: #40918

@mantepse mantepse changed the title graphs/harmonize num codebase use n_vertices, n_edges and n_faces also in the codebase Sep 30, 2025
@dcoudert
Copy link
Contributor

it seems that the branch has conflicts

@github-actions
Copy link

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

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 Oct 5, 2025
sagemathgh-40932: use n_vertices, n_edges and n_faces also in the codebase
    
To achieve better consistency, we replace `num_verts`, `num_edges` and
`num_faces` with `n_vertices`, `n_edges` and `n_faces` also in the
codebase.

`num_verts`, `num_edges` and `num_faces` remain aliases for backwards
compatibility.

dependencies: sagemath#40918
    
URL: sagemath#40932
Reported by: Martin Rubey
Reviewer(s): David Coudert
@vbraun vbraun merged commit 6292e29 into sagemath:develop Oct 6, 2025
24 of 25 checks passed
@mantepse mantepse deleted the graphs/harmonize_num_codebase branch October 8, 2025 15:06
vbraun pushed a commit to vbraun/sage that referenced this pull request Nov 10, 2025
sagemathgh-40939: n_nodes and number_of_nodes_xxx in tree related classes
    
fix sagemath#40935 in tree related classes.

cf sagemath#40932

Should `number_of_nodes` also be an alias, or perhaps instead of
`n_nodes`?
Should `n_nodes_to_the_right`, `n_nodes_at_depth` also be aliases?

Does this pollute the namespace too much?
    
URL: sagemath#40939
Reported by: Martin Rubey
Reviewer(s): David Coudert
vbraun pushed a commit to vbraun/sage that referenced this pull request Nov 11, 2025
sagemathgh-40939: n_nodes and number_of_nodes_xxx in tree related classes
    
fix sagemath#40935 in tree related classes.

cf sagemath#40932

Should `number_of_nodes` also be an alias, or perhaps instead of
`n_nodes`?
Should `n_nodes_to_the_right`, `n_nodes_at_depth` also be aliases?

Does this pollute the namespace too much?
    
URL: sagemath#40939
Reported by: Martin Rubey
Reviewer(s): David Coudert
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.

4 participants