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
|
package pagerank
|
||||||
|
|
||||||
import (
|
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
|
package redb
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
// The walks package is responsible for defining, generating, removing and updating random walks.
|
||||||
package walks
|
package walks
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@@ -13,7 +14,7 @@ var (
|
|||||||
Alpha = 0.85 // the dampening factor
|
Alpha = 0.85 // the dampening factor
|
||||||
N = 100 // the walks per node
|
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
|
// ID represent how walks are identified in the storage layer
|
||||||
|
|||||||
Reference in New Issue
Block a user