Struct raphy::csr::CSR

source · []
pub struct CSR { /* private fields */ }

Implementations

Build a random edge list This method returns a tuple of the number of vertices seen and the edge list el.len() is the number of edges.

Build an edge list from a file containing text describing one. The file format is line oriented and human readable: v0,v1 v0,v2 v0,v3 v0,v3 v1,v2 v1,v2 v2,v3 v3,v1 …

This method returns a tuple of the number of vertices seen and the edge list el.len() is the number of edges.

Take an edge list in and produce a CSR out (u,v)

Get the range of offsets into the neighbs array that hold the neighbors of vertex v

read_only_scan is a read only scan of all edges in the entire CSR that accepts a FnMut(usize,usize,u64) -> () to apply to each vertex

bfs_traversal starts from vertex start and does a breadth first search traversal on the vertices, applying f, the closure passed in, to each vertex

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.