dimacs

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateVariables added in v0.2.0

func GenerateVariables(dimacs *Dimacs) ([]deppy.Variable, error)

func NewDimacsCommand

func NewDimacsCommand() *cobra.Command

Types

type Dimacs

type Dimacs struct {
	// contains filtered or unexported fields
}

Dimacs constrains the variables and clauses that make up a CNF problem described in DIMACS format see: https://logic.pdmi.ras.ru/~basolver/dimacs.html

func NewDimacs

func NewDimacs(dimacsReader io.Reader) (*Dimacs, error)

NewDimacs creates a Dimacs struct with the values parsed from the DIMACS formatted stream afforted by dimacsReader

func (*Dimacs) Clauses

func (d *Dimacs) Clauses() []string

func (*Dimacs) Variables

func (d *Dimacs) Variables() []string

Jump to

Keyboard shortcuts

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