Module swh_graph::properties
source · Expand description
Node labels
SwhGraphProperties
is populated by the load_properties
and load_all_properties
of SwhUnidirectionalGraph
and
SwhBidirectionalGraph
and returned by
their properties
method.
use swh_graph::graph::SwhGraphWithProperties;
use swh_graph::java_compat::mph::gov::GOVMPH;
use swh_graph::SwhGraphProperties;
let properties: &SwhGraphProperties<_, _, _, _, _, _> =
swh_graph::graph::load_unidirectional(PathBuf::from("./graph"))
.expect("Could not load graph")
.load_all_properties::<GOVMPH>()
.expect("Could not load properties")
.properties();
Structs
- Placeholder for when “contents” properties are not loaded.
- Placeholder for when label names are not loaded.
- Placeholder for when maps are not loaded.
- Placeholder for when person ids are not loaded
- Placeholder for when string properties are not loaded
- Properties on graph nodes
- Trivial implementation of
Maps
that stores everything in a vector, instead of mmapping from disk
Enums
Traits
- Trait for backend storage of content properties (either in-memory or memory-mapped)
- Trait for backend storage of label names (either in-memory or memory-mapped)
- Trait for backend storage of maps (either in-memory, or loaded from disk and memory-mapped)
- Trait implemented by both
NoContents
and all implementors ofContents
, to allow loading content properties only if needed. - Trait implemented by both
NoLabelNames
and all implementors ofLabelNames
, to allow loading label names only if needed. - Trait implemented by both
NoTimestamps
and all implementors ofTimestamps
, to allow loading timestamp properties only if needed. - Trait for backend storage of person properties (either in-memory or memory-mapped)
- Trait for backend storage of string properties (either in-memory or memory-mapped)
- Trait for backend storage of timestamp properties (either in-memory or memory-mapped)