dsa_rust/graphs/
edge_list.rs

1//struct Node<V> {
2//    data: V,
3//    pos: Position<Node<V>> // Unique handle in the vertices list
4//}
5//
6//struct Edge<V, E> {
7//    // References to the positions in the vertices list
8//    origin: Position<Node<V>>,
9//    destination: Position<Node<V>>,
10//    data: E,
11//    pos: Position<Edge<V, E>> // Unique handle in the edges list
12//}
13//
14//pub struct EdgeList<V, E> {
15//    vertices: PosList<Node<V>>,
16//    edges: PosList<Edge<V, E>>
17//}