pub fn lotr_graph(shards: usize) -> PyResult<Py<PyGraph>>
Expand description

Load the Lord of the Rings dataset into a graph. The dataset is available at https://raw.githubusercontent.com/Raphtory/Data/main/lotr.csv and is a list of interactions between characters in the Lord of the Rings books and movies. The dataset is a CSV file with the following columns:

  • src_id: The ID of the source character
  • dst_id: The ID of the destination character
  • time: The time of the interaction (in page)

Dataset statistics:

  • Number of nodes (subreddits) 139
  • Number of edges (hyperlink between subreddits) 701

Arguments: shards: The number of shards to use for the graph

Returns: A Graph containing the LOTR dataset