pub fn generate_unique_node_name_from_names(
node_name: impl Into<String>,
names: &mut HashSet<String>,
) -> String
Expand description
Returns node_name
if it is not already in names
.
Otherwise, appends an incrementing -{counter}
suffix until a unique name is found,
then returns it. Logs a warning when a duplicate is detected.