Skip to main content

Interbank Lending Network for Default Risk Analysis

This sample demonstrates a directed graph of lending between financial instutions. Each node represents a financial instution lending out money, represented by links.

The colors of each node can either represent the default risk or the systemic impact of an instution. When coloring by default risk, nodes with high ratio of lent money to capital buffer are considered riskier. When displaying systemic risk, nodes are colored based on the scale of cascading default in the senerio that the instution fails to pay back lending.

When a node is selected, the diagram simulates the effects of the selected instution defaulting. This demonstrates the impact of one default as it ripples through a market. By changing the recovery rate you can model senerios based on how much of the lent money is lost when the borrower defaults. At low recovery rates there is increased risk in a single instution causing a chain reaction of defaults.

Hover over a node to get more information about the instition it represents, and click on nodes to see the impact caused by them defaulting.

GoJS Features in this sample

ToolTips

A tooltip is an Adornment that is shown when the mouse hovers over an object that has its GraphObject.toolTip set. The tooltip part is bound to the same data as the part itself.

It is typical to implement a tooltip as a "ToolTip" Panel holding a TextBlock or a Panel of TextBlocks and other objects. Each "ToolTip" is just an "Auto" Panel Adornment that is shadowed, and where the border is a rectangular Shape with a light gray fill. However you can implement the tooltip as any arbitrarily complicated Adornment.

More information can be found in the GoJS learn pages.

Related samples

Links

The Link class is used to implement a visual relationship between nodes. Links are normally created by the presence of link data objects in the GraphLinksModel.linkDataArray or by a parent key reference as the value of the TreeModel.nodeParentKeyProperty of a node data object in a TreeModel. More information can be found in the GoJS learn pages.

Related samples