Horizontal Visibility Graphs for Elementary Cellular Automata
A time series can be formed from an evolution of a finite elementary cellular automaton (ECA). This can be done in a few different ways. We can consider every step of an ECA evolution to be a binary number and calculate its decimal form by counting digits from left to right or in reverse. We also could just sum the digits. These operations are reflected correspondingly in the control buttons "left," "right," and "sum."
The Demonstration constructs the horizontal visibility graph (HGV) for an ECA time series. An HVG maps a time series to a graph. Each event in the time series corresponds to a vertex in the graph. Two vertices are connected by an edge if the corresponding events in the time series are larger than all the events between them.
The goal of mapping time series to graphs is to apply powerful graph-theoretic methods to time series analysis. To illustrate this, let us consider a toy problem. Vertical posts of various heights are arranged along a straight line, and each can emit a horizontal signal from any point along its height. If a signal needs to be communicated from the first to the last post, what is the minimum set of posts necessary? While the posts are considered as a time series, the problem is solved as a graph-theoretic shortest-path algorithm. The solution is highlighted in yellow.
There are various mappings from time series to visibility graphs. HVG is one of the simplest algorithms. Some more elaborate schemes claim a partial inverse operation. The main idea behind these mappings is their ability to apply time series and signal processing tools to graphs and metrics of graphs to time series. This may lead to discoveries of new relationships and a better understanding of old ones.
 L. Lacasa, B. Luque, F. Ballesteros, J. Luque, J. C. Nuño, "From Time Series to Complex Networks: The Visibility Graph," PNAS, 105(13), 2008 pp. 4972–4975. www.pnas.org/content/105/13/4972.full.
 B. Luque, L. Lacasa1, F. Ballesteros, and J. Luque, "Horizontal Visibility Graphs: Exact Results for Random Time Series," Physical Review E, 80(4), 046103, 2009. pre.aps.org/abstract/PRE/v80/i4/e046103.