Usage
SpreadHits(g, h, clusters=1, distance.cutoff=3, lambda=1,
dist.method=c("shortest.paths", "diffusion", "mfpt"),
edge.attr=NULL, hit.color="red", D=NULL, attempts=1000, verbose=TRUE)Arguments
g
igraph object, the network to work on.
h
Integer value, the number of hits in each cluster.
clusters
Integer value, the number of clusters to add the network.
distance.cutoff
Integer value, the minimum distance between the seed vertex of each cluster.
lambda
Numeric value, the strength of hit clustering. If lambda == 0, then the hits are randomly distributed. If lambda > 0, then the hits are clustered. The greater the value of lambda, the greater the strength of the hit clustering.
dist.method
String, the method used to compute the distance between each vertex and the seed vertex.
edge.attr
String, the name of the edge attribute to be used as distances along the edges. If NULL, then each edge is assumed to have a distance of 1. Smaller edge distances denote stronger interactions between vertex pairs.
hit.color
String, the colour of the hits if the network is plotted.
D
Pre-computed numeric distance matrix. If NULL, then D is computed within the function.
attempts
Integer value, the number of attempts made at each stage of the placement algorithm before the function terminates.
verbose
Logical, if TRUE messages about the progress of the function are displayed.