origin_multiple: Multiple origin estimation using community partitioning

Description Usage Arguments Value References See Also Examples

View source: R/origin_methods.r View source: R/origin_methods.r

Description

Multiple origin estimation using community partitioning

Usage

1
2
3
4
5
6
7
8
9
origin_multiple(
  events,
  type = c("edm", "backtracking", "centrality"),
  graph,
  no = 2,
  distance,
  fast = TRUE,
  ...
)

Arguments

events

numeric vector of event counts at specific time point

type

character specifying the method, 'edm', 'backtracking' and 'centrality' are available.

graph

igraph object specifying the underlying network graph

no

numeric specifying the number of supposed origins

distance

numeric matrix specifying the distance matrix

fast

logical specifying community partitioning algorithm, default is 'TRUE' that uses fastgreedy.community, 'FALSE' refers to leading.eigenvector.community

...

parameters to be passed to origin methods origin_edm, origin_backtracking or origin_centrality

Value

origin_multiple returns an list object with objects of class origin of length no

References

Zang, W., Zhang, P., Zhou, C. and Guo, L. (2014) Discovering Multiple Diffusion Source Nodes in Social Networks. Procedia Computer Science, 29, 443-452. <DOI: 10.1016/j.procs.2014.05.040>

See Also

Other origin-est: origin()

Examples

1
2
3
4
5
6
7
8
data(ptnAth)
# backtracking
origin_multiple(events=delayAth[10,-c(1:2)], type='backtracking', graph=ptnAth, no=2)
# edm
athnet <- igraph::as_adjacency_matrix(ptnAth, sparse=FALSE)
p <- athnet/rowSums(athnet)
eff <- eff_dist(p)
origin_multiple(events=delayAth[10,-c(1:2)], type='edm', graph=ptnAth, no=2, distance=eff)

NetOrigin documentation built on April 1, 2021, 5:07 p.m.