Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClosenessCentralityConfig ¶
ClosenessCentralityConfig holds the configuration settings for the closeness centrality algorithm.
type Config ¶
type Config struct { Workers int Closeness *ClosenessCentralityConfig PageRank *PageRankConfig EdgeBetweenness *EdgeBetweennessCentralityConfig Eigenvector *EigenvectorCentralityConfig Degree *DegreeCentralityConfig }
Config holds the configuration settings for the graph algorithms.
type DegreeCentralityConfig ¶
type DegreeCentralityConfig struct {
Mode string
}
type EdgeBetweennessCentralityConfig ¶
type EdgeBetweennessCentralityConfig struct {
Normalized bool
}
EdgeBetweennessCentralityConfig holds the configuration settings for the edge betweenness centrality algorithm.
type PageRankConfig ¶
type PageRankConfig struct { Alpha float64 // damping, default 0.85 MaxIter int // default 100 Tol float64 // L1 error, default 1e-6 Personalization *map[node.ID]float64 // p(u); if nil is uniform Dangling *map[node.ID]float64 // d(u); if nil p(u) Reverse bool }
PageRankConfig holds the configuration settings for the PageRank algorithm.
Click to show internal directories.
Click to hide internal directories.