netmeta (version 0.9-5)

netdistance: Calculate distance matrix for an adjacency matrix

Description

Calculate distance matrix for an adjacency matrix based on distance algorithm by M<U+00FC>ller et al. (1987).

Usage

netdistance(x)

Arguments

x

Either a netmeta object or an adjacency matrix.

References

M<U+00FC>ller WR, Szymanski K, Knop JV, and Trinajstic N (1987). An algorithm for construction of the molecular distance matrix. Journal of Computational Chemistry, 8, 170--173.

See Also

netmeta, netconnection

Examples

Run this code
# NOT RUN {
data(Senn2013)

net1 <- netmeta(TE, seTE, treat1, treat2, studlab,
                data = Senn2013, sm = "MD")

netdistance(net1)
netdistance(net1$A.matrix)
# }

Run the code above in your browser using DataCamp Workspace