graph-types 0.0.12

Shared types for graph theory.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::*;

impl Node for usize {
    type Name = String;

    fn index(&self) -> usize {
        *self
    }

    fn name(&self) -> Self::Name {
        self.to_string()
    }
}