Module graph

Source
Expand description

Structures to manipulate the Software Heritage graph

In order to load only what is necessary, these structures are initially created by calling SwhUnidirectionalGraph::new or SwhBidirectionalGraph::new, then calling methods on them to progressively load additional data (load_properties, load_all_properties, load_labels)

Re-exports§

pub use crate::arc_iterators::IntoFlattenedLabeledArcsIterator;

Structs§

DefaultUnderlyingGraph
Newtype for BvGraph with its type parameters set to what the SWH graph needs.
SwhBidirectionalGraph
Class representing the compressed Software Heritage graph in both directions.
SwhUnidirectionalGraph
Class representing the compressed Software Heritage graph in a single direction.

Traits§

SwhBackwardGraph
SwhForwardGraph
SwhFullGraph
Alias for structures representing a graph with all arcs, arc labels, and node properties loaded.
SwhGraph
SwhGraphWithProperties
SwhLabeledBackwardGraph
SwhLabeledForwardGraph
UnderlyingGraph
Supertrait of RandomAccessLabeling with methods to act like a RandomAccessGraph.

Functions§

load_bidirectionalDeprecated
Deprecated alias for SwhBidirectionalGraph::new
load_full
Loads a bidirectional graph, then all its properties, then its labels.
load_unidirectionalDeprecated
Deprecated alias for SwhUnidirectionalGraph::new

Type Aliases§

NodeId
Alias for usize, which may become a newtype in a future version.