Graphviz 13.0.0~dev.20241220.2304
|
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | node_data_struct |
struct | QuadTree_struct |
Typedefs | |
typedef struct node_data_struct * | node_data |
typedef struct QuadTree_struct * | QuadTree |
Functions | |
QuadTree | QuadTree_new (int dim, double *center, double width, int max_level) |
void | QuadTree_delete (QuadTree q) |
QuadTree | QuadTree_add (QuadTree q, double *coord, double weight, int id) |
void | QuadTree_print (FILE *fp, QuadTree q) |
QuadTree | QuadTree_new_from_point_list (int dim, int n, int max_level, double *coord) |
double | point_distance (double *p1, double *p2, int dim) |
void | QuadTree_get_supernodes (QuadTree qt, double bh, double *pt, int nodeid, int *nsuper, int *nsupermax, double **center, double **supernode_wgts, double **distances, double *counts) |
void | QuadTree_get_repulsive_force (QuadTree qt, double *force, double *x, double bh, double p, double KP, double *counts) |
void | QuadTree_get_nearest (QuadTree qt, double *x, double *ymin, int *imin, double *min) |
QuadTree | QuadTree_new_in_quadrant (int dim, double *center, double width, int max_level, int i) |
typedef struct node_data_struct* node_data |
Definition at line 19 of file QuadTree.h.
typedef struct QuadTree_struct* QuadTree |
Definition at line 29 of file QuadTree.h.
double point_distance | ( | double * | p1, |
double * | p2, | ||
int | dim | ||
) |
Definition at line 153 of file general.c.
Referenced by QuadTree_get_nearest_internal(), QuadTree_get_supernodes_internal(), and QuadTree_repulsive_force_interact().
Definition at line 515 of file QuadTree.c.
References coord(), and QuadTree_add_internal().
Referenced by QuadTree_new_from_point_list().
void QuadTree_delete | ( | QuadTree | q | ) |
Definition at line 375 of file QuadTree.c.
References QuadTree_struct::average, QuadTree_struct::center, QuadTree_struct::data, dim, QuadTree_struct::dim, free(), QuadTree_struct::l, node_data_struct::next, node_data_delete(), QuadTree_struct::qts, and QuadTree_delete().
Referenced by furtherest_point(), node_distinct_coloring(), QuadTree_delete(), spring_electrical_embedding(), spring_electrical_embedding_fast(), and spring_electrical_spring_embedding().
void QuadTree_get_nearest | ( | QuadTree | qt, |
double * | x, | ||
double * | ymin, | ||
int * | imin, | ||
double * | min | ||
) |
Definition at line 682 of file QuadTree.c.
References imin(), QuadTree_get_nearest_internal(), and ymin.
Referenced by make_map_internal(), and node_distinct_coloring_internal2().
void QuadTree_get_repulsive_force | ( | QuadTree | qt, |
double * | force, | ||
double * | x, | ||
double | bh, | ||
double | p, | ||
double | KP, | ||
double * | counts | ||
) |
Definition at line 281 of file QuadTree.c.
References bh, dim, QuadTree_struct::dim, QuadTree_struct::n, QuadTree_repulsive_force_accumulate(), and QuadTree_repulsive_force_interact().
Referenced by spring_electrical_embedding_fast().
void QuadTree_get_supernodes | ( | QuadTree | qt, |
double | bh, | ||
double * | pt, | ||
int | nodeid, | ||
int * | nsuper, | ||
int * | nsupermax, | ||
double ** | center, | ||
double ** | supernode_wgts, | ||
double ** | distances, | ||
double * | counts | ||
) |
Definition at line 93 of file QuadTree.c.
References bh, center(), dim, QuadTree_struct::dim, gv_calloc(), and QuadTree_get_supernodes_internal().
Referenced by spring_electrical_embedding(), and spring_electrical_spring_embedding().
QuadTree QuadTree_new | ( | int | dim, |
double * | center, | ||
double | width, | ||
int | max_level | ||
) |
Definition at line 357 of file QuadTree.c.
References QuadTree_struct::average, QuadTree_struct::center, center(), QuadTree_struct::data, dim, QuadTree_struct::dim, gv_alloc(), gv_calloc(), QuadTree_struct::l, QuadTree_struct::max_level, QuadTree_struct::n, NULL, QuadTree_struct::qts, QuadTree_struct::total_weight, and QuadTree_struct::width.
Referenced by furtherest_point(), QuadTree_new_from_point_list(), and QuadTree_new_in_quadrant().
QuadTree QuadTree_new_from_point_list | ( | int | dim, |
int | n, | ||
int | max_level, | ||
double * | coord | ||
) |
Definition at line 309 of file QuadTree.c.
References center(), coord(), dim, free(), gv_calloc(), NULL, QuadTree_add(), QuadTree_new(), xmax, and xmin.
Referenced by lab_gamut_quadtree(), make_map_internal(), node_distinct_coloring(), spring_electrical_embedding(), spring_electrical_embedding_fast(), and spring_electrical_spring_embedding().
QuadTree QuadTree_new_in_quadrant | ( | int | dim, |
double * | center, | ||
double | width, | ||
int | max_level, | ||
int | i | ||
) |
Definition at line 413 of file QuadTree.c.
References QuadTree_struct::center, center(), dim, and QuadTree_new().
Referenced by furtherest_point(), and QuadTree_add_internal().
void QuadTree_print | ( | FILE * | fp, |
QuadTree | q | ||
) |
Definition at line 615 of file QuadTree.c.
References QuadTree_struct::dim, and QuadTree_print_internal().