Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PseudoSteiner ¶
type PseudoSteiner[K comparable] struct { // contains filtered or unexported fields }
PseudoSteiner is a struct that represents a pseudo-steiner algorithm.
func NewPseudoSteiner ¶
func NewPseudoSteiner[K comparable](graph gograph.Graph[K], opts ...PseudoSteinerOption[K]) (*PseudoSteiner[K], error)
NewPseudoSteiner creates a new PseudoSteiner instance.
It takes linear or amortized O(V + E) time to prepare the pseudo-steiner structure.
type PseudoSteinerOption ¶
type PseudoSteinerOption[K comparable] func(*PseudoSteiner[K])
func WithMaxEffort ¶
func WithMaxEffort[K comparable](maxEffort float64) PseudoSteinerOption[K]
WithMaxEffort sets the maximum effort for the pseudo-steier algorithm.
Click to show internal directories.
Click to hide internal directories.