Versions in this module Expand all Collapse all v0 v0.9.2 May 11, 2021 Changes in this version + func KCliqueCommunities(k int, g graph.Undirected) [][]graph.Node + func ModularMultiplexScore(g Multiplex, weights []float64, all bool, score func(ReducedMultiplex) float64, ...) func(float64) (float64, Reduced) + func ModularScore(g graph.Graph, score func(ReducedGraph) float64, effort int, src rand.Source) func(float64) (float64, Reduced) + func Q(g graph.Graph, communities [][]graph.Node, resolution float64) float64 + func QMultiplex(g Multiplex, communities [][]graph.Node, weights, resolutions []float64) []float64 + func Size(g ReducedGraph) float64 + func SizeMultiplex(g ReducedMultiplex) float64 + func Weight(g ReducedGraph) float64 + func WeightMultiplex(g ReducedMultiplex) float64 + type DirectedLayers []graph.Directed + func NewDirectedLayers(layers ...graph.Directed) (DirectedLayers, error) + func (g DirectedLayers) Depth() int + func (g DirectedLayers) Layer(l int) graph.Directed + func (g DirectedLayers) Nodes() graph.Nodes + type DirectedMultiplex interface + Layer func(l int) graph.Directed + type Interval struct + High float64 + Low float64 + Score float64 + func Profile(fn func(float64) (float64, Reduced), log bool, grain, low, high float64) (profile []Interval, err error) + type Multiplex interface + Depth func() int + Nodes func() graph.Nodes + type Reduced interface + Communities func() [][]graph.Node + type ReducedDirected struct + func (g *ReducedDirected) Communities() [][]graph.Node + func (g *ReducedDirected) Edge(uid, vid int64) graph.Edge + func (g *ReducedDirected) Expanded() ReducedGraph + func (g *ReducedDirected) From(uid int64) graph.Nodes + func (g *ReducedDirected) HasEdgeBetween(xid, yid int64) bool + func (g *ReducedDirected) HasEdgeFromTo(uid, vid int64) bool + func (g *ReducedDirected) Node(id int64) graph.Node + func (g *ReducedDirected) Nodes() graph.Nodes + func (g *ReducedDirected) Structure() [][]graph.Node + func (g *ReducedDirected) To(vid int64) graph.Nodes + func (g *ReducedDirected) Weight(xid, yid int64) (w float64, ok bool) + func (g *ReducedDirected) WeightedEdge(uid, vid int64) graph.WeightedEdge + type ReducedDirectedMultiplex struct + func (g *ReducedDirectedMultiplex) Communities() [][]graph.Node + func (g *ReducedDirectedMultiplex) Depth() int + func (g *ReducedDirectedMultiplex) Expanded() ReducedMultiplex + func (g *ReducedDirectedMultiplex) Layer(l int) graph.Directed + func (g *ReducedDirectedMultiplex) Nodes() graph.Nodes + func (g *ReducedDirectedMultiplex) Structure() [][]graph.Node + type ReducedGraph interface + Communities func() [][]graph.Node + Expanded func() ReducedGraph + Structure func() [][]graph.Node + func Modularize(g graph.Graph, resolution float64, src rand.Source) ReducedGraph + type ReducedMultiplex interface + Communities func() [][]graph.Node + Expanded func() ReducedMultiplex + Structure func() [][]graph.Node + func ModularizeMultiplex(g Multiplex, weights, resolutions []float64, all bool, src rand.Source) ReducedMultiplex + type ReducedUndirected struct + func (g *ReducedUndirected) Communities() [][]graph.Node + func (g *ReducedUndirected) Edge(uid, vid int64) graph.Edge + func (g *ReducedUndirected) EdgeBetween(xid, yid int64) graph.Edge + func (g *ReducedUndirected) Expanded() ReducedGraph + func (g *ReducedUndirected) From(uid int64) graph.Nodes + func (g *ReducedUndirected) HasEdgeBetween(xid, yid int64) bool + func (g *ReducedUndirected) Node(id int64) graph.Node + func (g *ReducedUndirected) Nodes() graph.Nodes + func (g *ReducedUndirected) Structure() [][]graph.Node + func (g *ReducedUndirected) Weight(xid, yid int64) (w float64, ok bool) + func (g *ReducedUndirected) WeightedEdge(uid, vid int64) graph.WeightedEdge + func (g *ReducedUndirected) WeightedEdgeBetween(xid, yid int64) graph.WeightedEdge + type ReducedUndirectedMultiplex struct + func (g *ReducedUndirectedMultiplex) Communities() [][]graph.Node + func (g *ReducedUndirectedMultiplex) Depth() int + func (g *ReducedUndirectedMultiplex) Expanded() ReducedMultiplex + func (g *ReducedUndirectedMultiplex) Layer(l int) graph.Undirected + func (g *ReducedUndirectedMultiplex) Nodes() graph.Nodes + func (g *ReducedUndirectedMultiplex) Structure() [][]graph.Node + type UndirectedLayers []graph.Undirected + func NewUndirectedLayers(layers ...graph.Undirected) (UndirectedLayers, error) + func (g UndirectedLayers) Depth() int + func (g UndirectedLayers) Layer(l int) graph.Undirected + func (g UndirectedLayers) Nodes() graph.Nodes + type UndirectedMultiplex interface + Layer func(l int) graph.Undirected