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::mph::DynMphf;
use swh_graph::SwhGraphProperties;
let properties: &SwhGraphProperties<_, _, _, _, _, _> =
swh_graph::graph::SwhUnidirectionalGraph::new(PathBuf::from("./graph"))
.expect("Could not load graph")
.load_all_properties::<DynMphf>()
.expect("Could not load properties")
.properties();Structs§
- Guaranteed
Data Files - Helper type that implements
DataFilesAvailabilityto signal underlying data files are guaranteed to be available once the graph is loaded - Label
IdFrom Name Error - Mapped
Contents - Mapped
Label Names - Mapped
Maps - Mapped
Persons - Mapped
Strings Stringsimplementation backed by files guaranteed to be present once the graph is loaded- Mapped
Timestamps - NoContents
- Placeholder for when “contents” properties are not loaded.
- NoLabel
Names - Placeholder for when label names are not loaded.
- NoMaps
- Placeholder for when maps are not loaded.
- NoPersons
- Placeholder for when person ids are not loaded
- NoStrings
- Placeholder for when string properties are not loaded
- NoTimestamps
- Placeholder for when timestamp properties are not loaded
- OptMapped
Contents - Variant of
MappedStringsthat checks at runtime that files are present every time it is accessed - OptMapped
Persons - OptMapped
Strings - Variant of
MappedStringsthat checks at runtime that files are present every time it is accessed - OptMapped
Timestamps - Optional
Data Files - Helper type that implements
DataFilesAvailabilityto signal underlying data files may be missing at runtime - SwhGraph
Properties - Properties on graph nodes
- Unavailable
Property - VecContents
- VecLabel
Names - VecMaps
- Trivial implementation of
Mapsthat stores everything in a vector, instead of mmapping from disk - VecPersons
- VecStrings
- VecTimestamps
Enums§
Traits§
- Contents
- Trait for backend storage of content properties (either in-memory or memory-mapped)
- Data
Files Availability - Helper trait to work with
PropertiesResult - Label
Names - Trait for backend storage of label names (either in-memory or memory-mapped)
- Maps
- Trait for backend storage of maps (either in-memory, or loaded from disk and memory-mapped)
- Maybe
Contents - Trait implemented by both
NoContentsand all implementors ofContents, to allow loading content properties only if needed. - Maybe
Label Names - Trait implemented by both
NoLabelNamesand all implementors ofLabelNames, to allow loading label names only if needed. - Maybe
Maps - Trait implemented by both
NoMapsand all implementors ofMaps, to allow loading maps only if needed. - Maybe
Persons - Trait implemented by both
NoPersonsand all implementors ofPersons, to allow loading person ids only if needed. - Maybe
Strings - Trait implemented by both
NoStringsand all implementors ofStrings, to allow loading string properties only if needed. - Maybe
Timestamps - Trait implemented by both
NoTimestampsand all implementors ofTimestamps, to allow loading timestamp properties only if needed. - OptContents
- Trait implemented by all implementors of
MaybeContentsbutNoContents - OptPersons
- Trait for backend storage of person properties (either in-memory or memory-mapped)
- OptStrings
- Trait implemented by all implementors of
MaybeStringsbutNoStrings - OptTimestamps
- Trait for backend storage of timestamp properties (either in-memory or memory-mapped)
- Persons
- Trait for backend storage of person properties (either in-memory or memory-mapped)
- Properties
Backend - Common trait for type parameters of
SwhGraphProperties - Strings
- Trait for backend storage of string properties (either in-memory or memory-mapped)
- Timestamps
- Trait for backend storage of timestamp properties (either in-memory or memory-mapped)
Type Aliases§
- AllSwh
Graph DynProperties - AllSwh
Graph Properties - Properties
Result - Wrapper for the return type of
SwhGraphPropertiesmethods.