harary | R Documentation |
Computes the Harary global metric for a stream DAG.
harary(G)
G |
Graph object of class |
The Harary index is computed as:
\frac{1}{2}\sum_i^m\sum_j^m (RD)_{ij}
where (RD)_{ij}
is the reciprocal of the ij
th element of the graph distance matrix. Reciprocals of infinite values in the distance matrix are taken to be zero. Users should be aware that the graph object G
is assumed to be DAG, and that distances are based on in-paths.
Returns a scalar: the global Harary index.
Ken Aho, Gabor Csardi wote distances
Plavsic, D., Nikolic, S., Trinajstic, N., & Mihalic, Z. (1993). On the Harary index for the characterization of chemical graphs. Journal of Mathematical Chemistry, 12(1), 235-250.
harary(streamDAGs("konza_full"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.