add additional note

This commit is contained in:
Christian Hughes 2025-07-17 20:46:28 -05:00
parent e133d94eeb
commit ed790749cc

View File

@ -260,6 +260,9 @@ impl<const DIRECTED: bool, N: GraphNodeId, S: BuildHasher> Graph<DIRECTED, N, S>
/// Converts from one [`GraphNodeId`] type to another. If the conversion fails,
/// it returns the error from the target type's [`TryFrom`] implementation.
///
/// Nodes must uniquely convert from `N` to `T` (i.e. no two `N` can convert
/// to the same `T`).
///
/// # Errors
///
/// If the conversion fails, it returns an error of type `T::Error`.