API reference

Entry points

ColPack.ColPackColoringType
ColPackColoring

Struct holding the parameters of a coloring as well as its results (which can be queried with get_colors).

Fields

The fields of this struct are not part of the public API, they are only useful to interface with the C++ library ColPack.

Constructors

ColPackColoring(
    filename::AbstractString,
    method::ColoringMethod,
    order::ColoringOrder;
    verbose::Bool=false    
)

ColPackColoring(
    M::SparseMatrixCSC,
    method::ColoringMethod,
    order::ColoringOrder;
    verbose::Bool=false    
)

Perform the coloring of a matrix that is either given directly or read from a file.

The users needs to specify a coloring method and an order on the vertices.

See also

ColPack.matrix2adjmatrixMethod
matrix2adjmatrix(M::AbstractMatrix; partition_by_rows=true)

Create an adjacency matrix between the rows or between the columns of M, depending on whether partition_by_rows is true or false.

Coloring method

Coloring order

Internals

ColPack._cols_by_rowsMethod
    _cols_by_rows(rows_index, cols_index)

Returns a vector of rows where each row contains a vector of its column indices.

ColPack._rows_by_colsMethod
    _rows_by_cols(rows_index, cols_index)

Returns a vector of columns where each column contains a vector of its row indices.