cluster

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	RepresentativeThreadID int64   `json:"representative_thread_id"`
	Members                []int64 `json:"members"`
}

func Build

func Build(nodes []Node, edges []Edge) []Cluster

func BuildWithOptions

func BuildWithOptions(nodes []Node, edges []Edge, options Options) []Cluster

type Edge

type Edge struct {
	LeftThreadID  int64
	RightThreadID int64
	Score         float64
}

type Node

type Node struct {
	ThreadID int64
	Number   int
	Title    string
}

type Options

type Options struct {
	MaxSize int
}

Jump to

Keyboard shortcuts

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