![]() |
Bsoft 2.1.4
Bernard's software package
|
Library routines used for model processing. More...
#include "model_util.h"
#include "model_transform.h"
#include "model_select.h"
#include "model_compare.h"
#include "mol_transform.h"
#include "mol_compare.h"
#include "mol_util.h"
#include "symmetry.h"
#include "Matrix3.h"
#include "random_numbers.h"
#include "linked_list.h"
#include "utilities.h"
Functions | |
Matrix | model_shortest_path (Bmodel *model) |
Calculates the shortest path between every pair of vertices. More... | |
double | model_wiener_index (Bmodel *model) |
Calculates the Wiener index. More... | |
int | comp_link_check (Bcomponent *comp, Bcomponent *comp2) |
int | comp_link_check (Bmodel *model, string &id1, string &id2) |
Blink * | model_link_add (Bmodel *model, string &id1, string &id2) |
int | model_check_path (Bmodel *model, Bcomponent **path) |
double | model_add_path (Bmodel *model, Bcomponent **path) |
int | comp_pick_next (int i, int n, Bcomponent *comp, Bcomponent **path, Bmodel *model) |
Bmodel * | model_hamiltonian_cycle (Bmodel *model) |
Calculates the Hamiltonian cycles in a model. More... | |
Variables | |
int | verbose |
Library routines used for model processing.
int comp_link_check | ( | Bcomponent * | comp, |
Bcomponent * | comp2 | ||
) |
int comp_link_check | ( | Bmodel * | model, |
string & | id1, | ||
string & | id2 | ||
) |
int comp_pick_next | ( | int | i, |
int | n, | ||
Bcomponent * | comp, | ||
Bcomponent ** | path, | ||
Bmodel * | model | ||
) |
double model_add_path | ( | Bmodel * | model, |
Bcomponent ** | path | ||
) |
int model_check_path | ( | Bmodel * | model, |
Bcomponent ** | path | ||
) |
Calculates the Hamiltonian cycles in a model.
*model | model structure. |
A Hamiltonian cycle passes through each component once. The cycles are limited to the links in the input model. Redundant cycles are discarded. Only the first model in the linked list is used. Each of the resultant models has links forming a Hamiltonian cycle.Reference: H. Wiener, J. Am. Chem. Soc., 1947, 69, 17.
Calculates the shortest path between every pair of vertices.
*model | model structure. |
The adjacency matrix is calculated as a starting point. Only the first model in the linked list is used.
double model_wiener_index | ( | Bmodel * | model | ) |
Calculates the Wiener index.
*model | model structure. |
The Wiener index is calculated as the sum of the elements of the shortest path matrix. Only the first model in the linked list is used.Reference: H. Wiener, J. Am. Chem. Soc., 1947, 69, 17.
|
extern |