pub type CompressedCsrGraph = CsrGraph<EF, BitFieldVec>;Expand description
A CsrGraph with Elias–Fano-encoded degree cumulative function and
BitFieldVec-encoded successors.
Aliased Type§
pub struct CompressedCsrGraph { /* private fields */ }Implementations§
Source§impl CompressedCsrGraph
impl CompressedCsrGraph
Sourcepub fn try_from_graph<G: SequentialGraph>(g: &G) -> Result<Self>where
for<'a> G::Lender<'a>: SortedLender,
pub fn try_from_graph<G: SequentialGraph>(g: &G) -> Result<Self>where
for<'a> G::Lender<'a>: SortedLender,
Creates a new compressed CSR graph from a sequential graph with sorted lender and providing the number of arcs.
This method will return an error if the graph does not provide the number of arcs.