randomTargetAttackSingleNetwork: attack a network with different ways

Description Usage Arguments Value

View source: R/randomTargetAttackSingleNetwork.r

Description

attack a network with different ways

Usage

1
2
3
4
5
6
7
8
randomTargetAttackSingleNetwork(
  GRAPH,
  l = 10,
  vids = NULL,
  attack = c("random", "target", "localized", "motif"),
  decreasing = TRUE,
  normalized = TRUE
)

Arguments

GRAPH

igraph object

l

the largets attack steps

vids

the vertex ids

attack

the type of attack for random, target and localized and motif

decreasing

sort degree from large to small or not

normalized

normalized the giant component size

Value

a number of the giant component node


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