randomAttackSingleNetwork: Random attack for single network

Description Usage Arguments Value

View source: R/randomAttackSingleNetwork.r

Description

Random attack for single network

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
randomAttackSingleNetwork(
  GRAPH,
  p = 0.1,
  vids = NULL,
  attack = c("random", "target", "localized", "motif"),
  mode = c("out", "in", "all", "total"),
  decreasing = TRUE,
  normalized = TRUE,
  returnGRAPH = FALSE
)

Arguments

GRAPH

a igraph object

p

the fraction of remaining nodes

vids

the selected initial attack nodes in the target and localized attack

attack

the type of attack for random, target and localized and motif, the attack by id can be proceeded by the localized attack

mode

whether to delete the outgoing incoming or both edges for selected nodes

decreasing

sort degree from large to small or not

normalized

the giant component size

returnGRAPH

a logical, whether return the remaining graph or not

Value

a number of the giant component node


zlfccnu/econophysics documentation built on Feb. 23, 2022, 10:22 p.m.