1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
pub mod simple;
pub mod indexed;
pub mod get_iter;
pub mod mut_iter;

use std::borrow::Cow;
use crate::Graph;
use crate::NodeIndex;

pub trait Node {
    fn index(&self) -> NodeIndex;
}

pub trait IntoNode {
    type Node: Node;
    fn into_node(self) -> Self::Node;
}