|
Bsoft
2.1.0
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"Go to the source code of this file.
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, Bstring &id1, Bstring &id2) |
| Blink * | model_link_add (Bmodel *model, Bstring &id1, Bstring &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.
Definition in file model_path.cpp.
| int comp_link_check | ( | Bcomponent * | comp, |
| Bcomponent * | comp2 | ||
| ) |
Definition at line 113 of file model_path.cpp.
Definition at line 123 of file model_path.cpp.
| int comp_pick_next | ( | int | i, |
| int | n, | ||
| Bcomponent * | comp, | ||
| Bcomponent ** | path, | ||
| Bmodel * | model | ||
| ) |
Definition at line 191 of file model_path.cpp.
| double model_add_path | ( | Bmodel * | model, |
| Bcomponent ** | path | ||
| ) |
Definition at line 164 of file model_path.cpp.
| int model_check_path | ( | Bmodel * | model, |
| Bcomponent ** | path | ||
| ) |
Definition at line 145 of file model_path.cpp.
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.
Definition at line 239 of file model_path.cpp.
Definition at line 134 of file model_path.cpp.
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.
Definition at line 36 of file model_path.cpp.
| 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.
Definition at line 82 of file model_path.cpp.
|
extern |