icentral_graph/
from_filename.rs

1crate::ix!();
2
3impl<GH> FromFilename for Graph<GH> where GH: BccGraphHashInterface {
4
5    fn from_filename(filename: &str) -> Self {
6
7        let mut g = Graph::empty(&extract_graph_name(filename));
8
9        g.read_graph(filename);
10
11        g
12    }
13}