// ############################## START FUNC ############################################ // The connection table is made up separately for best possible overview // Integers: n,m, number_of_atoms, temp_int // Floating number matrix: distance_matrix, atom_radii_matrix // Integer matrix: atom_sorts, connection_table_matrix function intra_molecular_connections(atom_sorts, distance_matrix, atom_radii_matrix) { var temp_int=0; var number_of_atoms = atom_sorts.length; // This command creates a number_of_atoms*number_of_atoms matrix with bond markers var connection_table_matrix = def_matrix(number_of_atoms, number_of_atoms, 0, "undefined"); // Also, secondary connections can be introduced // ************ START LOOP (n) BELOW ********************* for(n=0;n