mirror of
https://github.com/aljazceru/crawler_v2.git
synced 2025-12-17 07:24:21 +01:00
package-level comments
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
// The pagerank package uses the random walks to compute graph algorithms like
|
||||
// global and personalized pageranks.
|
||||
package pagerank
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
// The package redb defines the redis implementation of the database, which stores
|
||||
// graph relationships (e.g. follows) as well as random walks.
|
||||
package redb
|
||||
|
||||
import (
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// The walks package is responsible for defining, generating, removing and updating random walks.
|
||||
package walks
|
||||
|
||||
import (
|
||||
@@ -13,7 +14,7 @@ var (
|
||||
Alpha = 0.85 // the dampening factor
|
||||
N = 100 // the walks per node
|
||||
|
||||
ErrInvalidRemoval = errors.New(fmt.Sprintf("the walks to be removed are different than the expected number %d", N))
|
||||
ErrInvalidRemoval = errors.New("the walks to be removed are different than the expected number (100)")
|
||||
)
|
||||
|
||||
// ID represent how walks are identified in the storage layer
|
||||
|
||||
Reference in New Issue
Block a user