graph

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllRelatives

func GetAllRelatives(db store.DB, id int64) ([]int64, error)

GetAllRelatives retrieves all components that are related to the component with the given id, including genetically unrelated relatives. The component with the given id will be included in the results.

Types

type Relative

type Relative struct {
	Component store.Component
	Children  []int64
}

A Relative represents a component together with its children.

func GetCloseLineage

func GetCloseLineage(db store.DB, id int64) ([]Relative, error)

GetCloseLineage retrieves the parents and all their ancestors of the component with the given id, including that component.

func GetFullLineage

func GetFullLineage(db store.DB, id int64) ([]Relative, error)

GetFullLineage retrieves components which share a genetic connection with the component of the given id, including that component.

Jump to

Keyboard shortcuts

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