Struct simple_pagerank::Pagerank[][src]

pub struct Pagerank<T> where
    T: Eq + Hash + Clone
{ /* fields omitted */ }
Expand description

PageRank structure.

Implementations

Creates a new instance

Sets the dumping factor. A value between 0 and 100 is expected.

Adds an node between two nodes

Returns the current score of a gien node

Returns the number of in edges for the given node

Returns the number of out edges for the given node

Returns the node_id for a given node name

Calculates PageRank with custom convergence

Calculates pagerank with custom convergence

Return all nodes, sorted by their pagerank

Calculates a single iteration of the PageRank

Len of all edges

Return the number of vertices/nodes in the current graph

Returns the number of edges in the current graph

If the graph is empty

Trait Implementations

Returns the “default value” for a type. 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

Performs the conversion.

Performs the conversion.

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.