use std::io;
use crate::graph::Graph;
pub trait GraphReadWriter<NodeWeight, EdgeWeight>: Graph<NodeWeight, EdgeWeight> {
fn serialize_graph_to_file(&self, path: &str) -> Result<(), io::Error>;
fn deserialize_graph_from_file(path: &str) -> Result<Box<Self>, io::Error>;
}