|
Bsoft 2.1.4
Bernard's software package
|
Functions to manipulate model component neighbors. More...
#include "rwmodel.h"Functions | |
| int | model_set_neighbors (Bmodel *model, int number) |
| Sets the desired number of components as neighbors for each component. More... | |
| int | model_set_neighbors (Bmodel *model, int number, double distance) |
| int | model_neighbor_reciprocity (Bmodel *model) |
| Counts how many neighbors of a component also has that component as a neighbor. More... | |
Functions to manipulate model component neighbors.
| int model_neighbor_reciprocity | ( | Bmodel * | model | ) |
Counts how many neighbors of a component also has that component as a neighbor.
| *model | model. |
For each neighbor of component, the neighbor list of the neighbor is searched for the id of the first component. Only the first model in the linked list is used.
| int model_set_neighbors | ( | Bmodel * | model, |
| int | number | ||
| ) |
Sets the desired number of components as neighbors for each component.
| *model | model. |
| number | number of neighbors to set. |
For each component, its neighbor list is set to the closest components. Only the first model in the linked list is used.
| int model_set_neighbors | ( | Bmodel * | model, |
| int | number, | ||
| double | distance | ||
| ) |