Enum tspf::WeightFormat[][src]

pub enum WeightFormat {
    Function,
    FullMatrix,
    UpperRow,
    LowerRow,
    UpperDiagRow,
    LowerDiagRow,
    UpperCol,
    LowerCol,
    UpperDiagCol,
    LowerDiagCol,
    Undefined,
}
Expand description

Specifies how edge weights are stored in a file.

Variants

Function

Weights are calculated by the function stated in WeightKind.

Corresponds to the value FUNCTION in TSPLIB.

FullMatrix

Weights are given in a full matrix.

Corresponds to the value FULL_MATRIX in TSPLIB.

UpperRow

Weights are given in an upper triangular matrix, row-wise without diagonal entries.

Corresponds to the value UPPER_ROW in TSPLIB.

LowerRow

Weights are given in a lower triangular matrix, row-wise without diagonal entries.

Corresponds to the value LOWE_ROW in TSPLIB.

UpperDiagRow

Weights are given in an upper triangular matrix, row-wise with diagonal entries.

Corresponds to the value UPPER_DIAG_ROW in TSPLIB.

LowerDiagRow

Weights are given in a lower triangular matrix, row-wise with diagonal entries.

Corresponds to the value LOWER_DIAG_ROW in TSPLIB.

UpperCol

Weights are given in an upper triangular matrix, col-wise without diagonal entries.

Corresponds to the value UPPER_COL in TSPLIB.

LowerCol

Weights are given in an lower triangular matrix, col-wise without diagonal entries.

Corresponds to the value LOWER_COL in TSPLIB.

UpperDiagCol

Weights are given in an upper triangular matrix, col-wise with diagonal entries.

Corresponds to the value UPPER_DIAG_COL in TSPLIB.

LowerDiagCol

Weights are given in a lower triangular matrix, col-wise with diagonal entries.

Corresponds to the value LOWER_DIAG_COL in TSPLIB.

Undefined

No specification how weights are stored.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.