Skip to content

Change occurrences of V with N in the documentation.#357

Closed
glandium wants to merge 1 commit intopetgraph:masterfrom
glandium:nodes
Closed

Change occurrences of V with N in the documentation.#357
glandium wants to merge 1 commit intopetgraph:masterfrom
glandium:nodes

Conversation

@glandium
Copy link

The petgraph structs are generic over N (node) rather than V, so the
use of V (which stands for vertices, but that's rarelt spelled out) in
the documentation is confusing.

Also change occurrences of vertex/vertices with node/nodes in rustdoc
comments, for more consistency.

Fixes: #356

The petgraph structs are generic over `N` (node) rather than `V`, so the
use of `V` (which stands for vertices, but that's rarelt spelled out) in
the documentation is confusing.

Also change occurrences of vertex/vertices with node/nodes in rustdoc
comments, for more consistency.

Fixes: petgraph#356
Copy link
Contributor

@mifrandir mifrandir left a comment

Choose a reason for hiding this comment

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

I think V as the set of nodes/vertices is a very widely used convention and it would be weird to change it to N because a) N has not been used before in this library (as far as I can tell) and b) people probably associate N with a number rather than a set.

If we want to keep using "nodes" instead of "vertices", I'd argue that all the explicit occurrences should be replaced accordingly but the symbol for the set of nodes should remain V anyways.

@starovoid
Copy link
Collaborator

An alternative proposal was accepted (#358 and #814).

@starovoid starovoid closed this Jun 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation about space use of petgraph::graph::Graph is unclear

4 participants