use wolf_graph::prelude::*;
pub fn format_ids<T: std::fmt::Display, C: IntoIterator<Item = T>>(ids: C) -> String {
let mut s = "[".to_string();
let mut iter = ids.into_iter();
if let Some(id) = iter.next() {
s.push_str(&id.to_string());
for id in iter {
s.push_str(", ");
s.push_str(&id.to_string());
}
}
s.push(']');
s
}