snark-tool 0.4.0

snark-tool library contains structures and algorithm for (mainly) cubic graph analysis
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::service::io::error::ReadError;
use std::fs;

pub trait GraphFileReader<'a, G> {
    fn new(file: &'a fs::File) -> Self;

    // TODO
    // fn from_file(file: &'a fs::File) -> Self;
    // fn from_path(path: impl AsRef<str>) -> Self;

    fn next(&mut self) -> Option<Result<G, ReadError>>;
}