models

package
v0.0.0-...-5f763be Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Protein

type Protein string

type ProteinList

type ProteinList []Protein

func (*ProteinList) Append

func (p *ProteinList) Append(protein Protein)

func (ProteinList) ContainsProtein

func (p ProteinList) ContainsProtein(protein Protein) bool

func (*ProteinList) RemoveDuplicates

func (p *ProteinList) RemoveDuplicates()

type ProteinNetwork

type ProteinNetwork map[Protein]ProteinList

func (ProteinNetwork) HasCycle

func (p ProteinNetwork) HasCycle() bool

func (*ProteinNetwork) Insert

func (p *ProteinNetwork) Insert(a, b Protein)

func (ProteinNetwork) ShortestPaths

func (graph ProteinNetwork) ShortestPaths(source Protein) []ProteinList

type ProteinNode

type ProteinNode struct {
	Protein  Protein
	Children []*ProteinNode
}

func CreateProteinTree

func CreateProteinTree(sourceProtein Protein, network ProteinNetwork) *ProteinNode

Jump to

Keyboard shortcuts

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