Skip to main content

GraphDatasetLoader

Trait GraphDatasetLoader 

Source
pub trait GraphDatasetLoader {
    // Required methods
    fn load_from_file<P: AsRef<Path>>(&self, path: P) -> IoResult<GraphData>;
    fn load_from_directory<P: AsRef<Path>>(
        &self,
        path: P,
    ) -> IoResult<Vec<GraphData>>;
    fn supported_extensions(&self) -> Vec<&'static str>;
}
Expand description

Graph dataset loader trait

Required Methods§

Source

fn load_from_file<P: AsRef<Path>>(&self, path: P) -> IoResult<GraphData>

Load graph from file

Source

fn load_from_directory<P: AsRef<Path>>( &self, path: P, ) -> IoResult<Vec<GraphData>>

Load multiple graphs from directory

Source

fn supported_extensions(&self) -> Vec<&'static str>

Get supported file extensions

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§