|
Graphviz 16.0.1~dev.20260815.2250
|
#include "config.h"#include "country_graph_coloring.h"#include <math.h>#include "power.h"#include <stdbool.h>#include <stdlib.h>#include <time.h>#include <util/gv_math.h>#include <util/prisize_t.h>Go to the source code of this file.
Macros | |
| #define | STANDALONE |
Functions | |
| static size_t | zabs (size_t a, size_t b) |
| static size_t | get_local_12_norm (size_t n, size_t i, const int *ia, const int *ja, const size_t *p) |
| static void | get_12_norm (size_t n, const int *ia, const int *ja, const size_t *p, size_t *norm) |
| void | improve_antibandwidth_by_swapping (SparseMatrix A, size_t *p) |
| size_t * | country_graph_coloring (int seed, SparseMatrix A) |
| #define STANDALONE |
Definition at line 13 of file country_graph_coloring.c.
| size_t * country_graph_coloring | ( | int | seed, |
| SparseMatrix | A | ||
| ) |
Definition at line 108 of file country_graph_coloring.c.
References A, FORMAT_COORD, free(), SparseMatrix_struct::ia, improve_antibandwidth_by_swapping(), SparseMatrix_struct::ja, L, MATRIX_TYPE_REAL, power_method(), seed, SparseMatrix_coordinate_form_add_entry, SparseMatrix_delete(), SparseMatrix_from_coordinate_format(), SparseMatrix_new(), SparseMatrix_symmetrize(), vector_ordering(), and Verbose.
Referenced by map_optimal_coloring().
|
static |
Definition at line 39 of file country_graph_coloring.c.
References norm(), zabs(), and zmin().
Referenced by improve_antibandwidth_by_swapping().
|
static |
Definition at line 29 of file country_graph_coloring.c.
References norm(), zabs(), and zmin().
Referenced by improve_antibandwidth_by_swapping().
| void improve_antibandwidth_by_swapping | ( | SparseMatrix | A, |
| size_t * | p | ||
| ) |
Definition at line 57 of file country_graph_coloring.c.
References A, cnt(), get_12_norm(), get_local_12_norm(), NULL, PRISIZE_T, SparseMatrix_is_symmetric(), Verbose, and zmin().
Referenced by country_graph_coloring().
|
static |
Definition at line 23 of file country_graph_coloring.c.
Referenced by get_12_norm(), and get_local_12_norm().