Computes distance matrix from connection table.

calc_distance_matrix(connTable)

Arguments

connTable

connection table

Value

distance matrix

Examples

data("alkans74") mol <- alkans74.mdb[[5]] ct <- mol_get_ct(mol) calc_distance_matrix(ct)
#> [,1] [,2] [,3] [,4] [,5] #> [1,] 0 1 2 3 4 #> [2,] 1 0 1 2 3 #> [3,] 2 1 0 1 2 #> [4,] 3 2 1 0 1 #> [5,] 4 3 2 1 0