Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
country_graph_coloring.c File Reference
#include "country_graph_coloring.h"
#include <math.h>
#include "power.h"
#include <stdbool.h>
#include <time.h>
Include dependency graph for country_graph_coloring.c:

Go to the source code of this file.

Macros

#define STANDALONE
 

Functions

static void get_local_12_norm (int n, int i, const int *ia, const int *ja, const int *p, double *norm)
 
static void get_12_norm (int n, int *ia, int *ja, int *p, double *norm)
 
void improve_antibandwidth_by_swapping (SparseMatrix A, int *p)
 
void country_graph_coloring (int seed, SparseMatrix A, int **p)
 

Macro Definition Documentation

◆ STANDALONE

#define STANDALONE

Definition at line 11 of file country_graph_coloring.c.

Function Documentation

◆ country_graph_coloring()

void country_graph_coloring ( int  seed,
SparseMatrix  A,
int **  p 
)

Definition at line 105 of file country_graph_coloring.c.

References A, FORMAT_COORD, get_12_norm(), 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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_12_norm()

static void get_12_norm ( int  n,
int *  ia,
int *  ja,
int *  p,
double *  norm 
)
static

Definition at line 30 of file country_graph_coloring.c.

References norm().

Referenced by country_graph_coloring(), and improve_antibandwidth_by_swapping().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_local_12_norm()

static void get_local_12_norm ( int  n,
int  i,
const int *  ia,
const int *  ja,
const int *  p,
double *  norm 
)
static

Definition at line 18 of file country_graph_coloring.c.

References norm().

Referenced by improve_antibandwidth_by_swapping().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ improve_antibandwidth_by_swapping()

void improve_antibandwidth_by_swapping ( SparseMatrix  A,
int *  p 
)

Definition at line 53 of file country_graph_coloring.c.

References A, cnt(), get_12_norm(), get_local_12_norm(), NULL, SparseMatrix_is_symmetric(), and Verbose.

Referenced by country_graph_coloring().

Here is the call graph for this function:
Here is the caller graph for this function: