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

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 of Contents, to allow loading content properties only if needed.
  • Trait implemented by both NoLabelNames and all implementors of LabelNames, to allow loading label names only if needed.
  • Trait implemented by both NoMaps and all implementors of Maps, to allow loading maps only if needed.
  • Trait implemented by both NoPersons and all implementors of Persons, to allow loading person ids only if needed.
  • Trait implemented by both NoStrings and all implementors of Strings, to allow loading string properties only if needed.
  • Trait implemented by both NoTimestamps and all implementors of Timestamps, 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)

Type Aliases