pagerank

package module
v0.0.0-...-82ed0ea Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2018 License: MIT Imports: 1 Imported by: 0

README

pagerank

pagerank

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pagerank

type Pagerank struct {
	Matrix   [][]uint64
	Links    []uint64
	Keymap   map[string]uint64
	Rekeymap []string
}

Pagerank is pagerank calculator

func NewPagerank

func NewPagerank() *Pagerank

NewPagerank Create a pagerank calculator

func (*Pagerank) Len

func (pr *Pagerank) Len() int

Len returns total number of pages

func (pr *Pagerank) Link(from, to string)

Link mark a link

func (*Pagerank) Rank

func (pr *Pagerank) Rank(followingProb, tolerance float64, resultFunc func(label string, rank float64))

Rank calculate rank

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL