322 views (last 30 days)

Hello,

I'm simulating failures of nodes in an interdependent system (two graphs, g and h) and their adjacency matrices are A and B. Some nodes in graph g (layer A) will get attacked randomly, and then this failure will get propagated to graph h (layer B) through the interlinks between the two graphs.

I'm trying to simulate failure or nodes removal based on time, that is,

at: t=1, remove first node in A.

t=2, remove the second node in A

t=3, failure propagates to B and first node in B get removed and so on.

Your help would be highly appreciated.

Christine Tobler
on 15 Jan 2021

Christine Tobler
on 2 Feb 2021 at 12:16

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
## 1 Comment

## Direct link to this comment

https://fr.mathworks.com/matlabcentral/answers/716973-how-to-make-nodes-removal-from-a-graph-as-a-function-of-time#comment_1263388

⋮## Direct link to this comment

https://fr.mathworks.com/matlabcentral/answers/716973-how-to-make-nodes-removal-from-a-graph-as-a-function-of-time#comment_1263388

Sign in to comment.