File Exchange

image thumbnail

Exploring Risk Contagion using Graph Theory and Markov Chains

version (178 KB) by Ken Deeley
Describe, visualize and model sector risk contagion for a portfolio of securities


Updated 29 Mar 2017

View License

This submission contains all code and data used in the technical article "Exploring Risk Contagion Using Graph Theory and Markov Chains"

Cite As

Ken Deeley (2020). Exploring Risk Contagion using Graph Theory and Markov Chains (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (8)

Ken Deeley

Davide, Sheng Mo,
Thanks for your feedback - please add comments to the Live Editor version of this submission (

Davide - please run the updater to obtain the latest R2020a update.



Error using tabular/numArgumentsFromSubscript (line 78)
Unrecognized table variable name 'internal'.

Please help on this error. I'm using R2020a

Al K


Hi,dear author Ken Deeley,forgive the poor English firstly. I just want to know if your method about "Exploring Risk Contagion using Graph Theory and Markov Chains" can be used in reseraches of infectious diseases, tks, a stupid student of medicical school. I hope you will contact me.

Caxap Puc

Caxap Puc

Ken Deeley

The centrality function associated with graph objects is available in R2016a onwards.

Alex Faliv

hi, could you please check the existence of a function named "centrality"


Added a link to the published article in the description box.

Updated license

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux