graph-base 0.1.14

A Rust library for graph data structures and algorithms
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::{fmt::Display, hash::Hash};
use crate::interfaces::graph::SingleId;

// pub trait Vertex: Eq + Hash + Clone + Sized + Display + SingleId {
    
// }

pub trait Vertex: Eq + Hash + Clone + Sized + Display + SingleId {}

// pub struct VertexWrapper<T: Vertex>(pub T);

// impl<T: Vertex> PartialEq for VertexWrapper<T> {
//     fn eq(&self, other: &Self) -> bool {
//         self.0.id() == other.0.id()
//     }
// }