Module raphtory::graph_loader

source ·
Expand description

GraphLoader trait and provides some default implementations for loading a graph. This base class is used to load in-built graphs such as the LOTR, reddit and StackOverflow. It also provides a method to download a CSV file.

Example

use raphtory::graph_loader::fetch_file;

let path = fetch_file(
    "lotr.csv",
    "https://raw.githubusercontent.com/Raphtory/Data/main/lotr.csv",
    600
);

// check if a file exists at the path
assert!(path.is_ok());

Modules

Functions