graph_types/vertexes/
indexed.rs

1use super::*;
2
3impl Node for usize {
4    type Name = String;
5
6    fn index(&self) -> usize {
7        *self
8    }
9
10    fn name(&self) -> Self::Name {
11        self.to_string()
12    }
13}