louvain

package
v0.0.0-...-4f03491 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graph

type Graph struct {
	Total int
	Nodes []Node
	// contains filtered or unexported fields
}

func MakeNewGraph

func MakeNewGraph(size int, mergeFn MergeFn) *Graph

func MakeNewGraphFromNodes

func MakeNewGraphFromNodes(nodes []Node, totalLinks int, mergeFn MergeFn) *Graph

func (*Graph) NextLevel

func (g *Graph) NextLevel(limit int, precision float32) *Graph

func (*Graph) Print

func (g *Graph) Print()
type Link struct {
	To     int
	Weight int
}

type MergeFn

type MergeFn func(cs []*Node) interface{}

type Node

type Node struct {
	Data     interface{}
	Parent   *Node
	Children []*Node
	Links    []Link
	Degree   int
	SelfLoop int
}

func (*Node) Print

func (node *Node) Print()

Jump to

Keyboard shortcuts

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