Skip to main content

Understanding how nodes, links, & components fit together

Learn how nodes, links, and components combine into the calculations behind every Logica model.

Written by Carissa Castro

Who is this article for?

This article explains how nodes, links, and components work together to build calculations. It goes one level deeper than Understanding Logica models, which introduces each one.


How do nodes, links, and components relate?

A component is the container, and nodes and links are the pieces inside it.

  • Nodes store values.

  • Links bring a value from one node into another.

  • Components contain the nodes and links that belong together, like revenue or the income statement.

Every calculation in Logica is built by connecting nodes with links inside a component.

The Revenue Calculation component, a container for logic. Input nodes A and B are connected by links to a multiply operator that calculates Output 1, so Output 1 equals Input A times Input B.

What are nodes?

Nodes store values: numbers, text, true or false values, or dates. Each node has one value for every period in the model's timeframe, and its values can differ by scenario. There are four types of nodes: variables, constants, operators, and groups.

A node with a separate value at each time period, from t0 to t12.

Nodes have a time dimension that follows the model's periods, such as months or years.

A node's time periods labeled two ways: t1 through t12 as months from Jan-22 to Dec-22, or as years from 2022 to 2033. The t0 column has no label.

What is the difference between a variable and a constant?

Variables are nodes that have values that change over time. Each time period can store a unique value.

Constants are nodes that have values that do not change over time. Each time period has the same value.

A variable whose value rises from 0 to 12,000 across periods, next to a constant that stays at 1,000 in every period.

What is the difference between an input and an output node?

Nodes are either inputs or outputs. An input node doesn't depend on any other node. Its values are entered by a user or arrive from a data integration, and it appears blue on the modeling canvas. An output node is calculated from at least one other node, and it appears white.

To learn more about node settings, see Nodes.


What are links?

Links transfer values between two nodes. A link works like a named reference in Excel, but it's visible on the modeling canvas, so you can always see where a value comes from or goes to.

A link sending values from an input node to an output node, so the output shows the same value in every period.

Links can shift values over time: send a value one or more periods later.

A link set to one period later, so each input value appears in the output one period after it appears in the input.

Links can transform values: change a value on the way, such as multiplying it by 2.

A link that multiplies by 2, so the output shows double the input value in every period.

To learn more about link settings, see Links.


What are components?

A component is a container for the nodes and links that belong to one business concept, like revenue, expenses, or the whole income statement. Each component holds one piece of the model, which keeps large models readable. On the modeling canvas, each component has its own icon, and components can sit inside groups.

How is a calculation built from nodes and links?

A calculation, or formula, in Logica is a set of nodes and links inside of a component, not an expression typed into a cell. To learn how to build calculations, see How to build an arithmetic formula and How to build a conditional formula using IF.

Can links connect nodes in different components?

Yes. A node in one component can link to a node in another, which is how a model grows beyond a single calculation. A revenue result calculated in one component, for example, can feed an income statement in another. Following the links backward from any result leads to the inputs behind it, even across components.

How does the whole model calculate?

Nodes and links are combined to create a graph, or logical tree. The graph works like one or more large formulas spread across many components. When any input changes, Logica recalculates every node that depends on it, for every period.

Three components connected by links. In Revenue Calculation, Inputs A and B feed a multiply operator that calculates Output 1. In Expense Calculation, Inputs C and D feed a multiply operator that calculates Output 2. Both outputs link into the Revenue and Expense nodes of the Income Statement component, where a subtract operator calculates net income.


Where should I go next?

Did this answer your question?