Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCantFindVertex = errors.New("Can not find vertex with given bounds and height")
ErrCantFindVertex is returned when a new vertex cannot be found within the given bounds.
Functions ¶
func Worker ¶
func Worker(input <-chan *partial.State, completedOutput chan<- interface{}, partialOutput chan<- interface{}, done <-chan struct{}, lg log.Interface)
Worker is the background worker that reads partial states from the channel input and for each partial state: - sees whether it completes to a new Fano polytope, if outputting it to the channel completedOutput; - attempts to grow it by adding a single extra vertex in all possible ways, passing the results to the channel partialOutput. The worker exits when the done channel is closed. On exit, it closes the channels completedOutput and partialOutput.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.