1#![doc = include_str!("../README.md")]
7
8use thiserror::Error;
9
10pub mod _crash_course;
11pub mod _tutorial;
12
13mod swhid;
14#[cfg(feature = "macros")]
15pub use swhid::__parse_swhid;
16pub use swhid::{StrSWHIDDeserializationError, SWHID};
17
18mod swhtype;
19pub use swhtype::{ArcType, NodeConstraint, NodeType};
20
21pub mod algos;
22pub mod arc_iterators;
23pub mod front_coded_list;
24pub mod graph;
25pub mod graph_builder;
26mod r#impl;
27mod labeling;
28pub mod labels;
29pub mod map;
30pub mod mph;
31pub mod properties;
32pub use properties::{AllSwhGraphProperties, SwhGraphProperties};
33#[cfg(feature = "serde")]
34pub mod serde;
35pub mod stats;
36mod underlying_graph;
37
38#[cfg(feature = "compression")]
39pub mod compress;
40pub mod views;
41
42pub mod approximate_bfs;
43pub mod java_compat;
44
45pub mod utils;
46
47pub mod person;
48
49pub use webgraph;
50
51#[derive(Error, Debug, PartialEq, Eq, Hash, Clone)]
54#[error("Accessed property index {index} out of {len}")]
55pub struct OutOfBoundError {
56 pub index: usize,
58 pub len: usize,
60}
61
62pub const VERSION: &str = env!("CARGO_PKG_VERSION");