MCPcopy Create free account
hub / github.com/didasy/tldr / SetCustomAlgorithm

Method SetCustomAlgorithm

tldr.go:97–99  ·  view source on GitHub ↗
(f func(e []*Edge) []int)

Source from the content-addressed store, hash-verified

95}
96
97func (bag *Bag) SetCustomAlgorithm(f func(e []*Edge) []int) {
98 bag.customAlgorithm = f
99}
100
101func (bag *Bag) SetCustomWeighing(f func(src, dst []int) float64) {
102 bag.customWeighing = f

Callers 2

edge_cases_test.goFile · 0.80
bag_config_test.goFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected