cascadingFailure: This program is trying to modeling the cascading failure

Description Usage Arguments Value

View source: R/cascadingFailure.R

Description

This program is trying to modeling the cascading failure

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
cascadingFailure(
  GRAPH1,
  GRAPH2,
  attack = c("random", "target", "localized", "motif"),
  p = 0.7,
  q = NULL,
  plot = FALSE,
  vids = NULL,
  Trace = TRUE,
  decreasing = TRUE,
  normalized = TRUE
)

Arguments

GRAPH1

the first layer of inter dependent network

GRAPH2

the scond layer of inter dependent network

attack

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

p

1-p is the fraction of nodes that the initial attack start

q

the coupling strength between two layers(not valid)

plot

whether to plot the network or not

vids

the vertex ids for localized attack

Trace

whether to trace the process of the cascading failure

normalized

normalized the ratio of the giant component

Value

a vector with length two give the node numbers of the giant component


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