Next Article in Journal
Four-Objective Optimization of Irreversible Atkinson Cycle Based on NSGA-II
Next Article in Special Issue
Modelling Excess Mortality in Covid-19-Like Epidemics
Previous Article in Journal
A Simple Mechanism Causing Wealth Concentration
Previous Article in Special Issue
Modeling User Reputation in Online Social Networks: The Role of Costs, Benefits, and Reciprocity
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Filtering Statistics on Networks

Department of Physics, University of Aveiro de & I3N, Campus Universitário de Santiago, 3810-193 Aveiro, Portugal
*
Author to whom correspondence should be addressed.
Entropy 2020, 22(10), 1149; https://doi.org/10.3390/e22101149
Submission received: 31 July 2020 / Revised: 9 October 2020 / Accepted: 9 October 2020 / Published: 13 October 2020
(This article belongs to the Special Issue Dynamic Processes on Complex Networks)

Abstract

:
Compression, filtering, and cryptography, as well as the sampling of complex systems, can be seen as processing information. A large initial configuration or input space is nontrivially mapped to a smaller set of output or final states. We explored the statistics of filtering of simple patterns on a number of deterministic and random graphs as a tractable example of such information processing in complex systems. In this problem, multiple inputs map to the same output, and the statistics of filtering is represented by the distribution of this degeneracy. For a few simple filter patterns on a ring, we obtained an exact solution of the problem and numerically described more difficult filter setups. For each of the filter patterns and networks, we found three key numbers that essentially describe the statistics of filtering and compared them for different networks. Our results for networks with diverse architectures are essentially determined by two factors: whether the graphs structure is deterministic or random and the vertex degree. We find that filtering in random graphs produces much richer statistics than in deterministic graphs, reflecting the greater complexity of such graphs. Increasing the graph’s degree reduces this statistical richness, while being at its maximum at the smallest degree not equal to two. A filter pattern with a strong dependence on the neighbourhood of a node is much more sensitive to these effects.

1. Introduction

Many systems of great interest from different domains, from the brain to ecosystems to social systems and technological systems, share the characteristic of complex behaviours that emerge from the interactions between their numerous elements. A recurring feature of such systems is a nontrivial mapping of an initial configuration space to a smaller set of final configurations, appearing in sampling, compression, and more general information processing [1,2,3,4,5,6], and in numerous complex systems, including the basins of attraction of local minima in spin glasses, and deep learning neural networks [7,8,9]. Understanding the statistics of these degenerate states can provide important insight into these systems. The statistics of degeneracies, and their relation to the principle of maximum entropy, were studied in a variety of complex systems in a recent series of works [1,10,11,12,13].
Filtering is the processing of an input signal to produce an output signal according to some rule, based on the content of the input. The filter does not add information, with the number of possible outputs being less than (or at most equal to) the number of possible inputs. Thus, outputs degenerate: multiple inputs map to the same output. Even very simple filters can produce a complex distribution of degeneracies [14]. In a previous work [14], we showed that a simple filtering problem produces analogous behaviour of the degeneracy distribution to these more complex systems, and that one can obtain exact results up to large system sizes that are simply not accessible in more complex problems.
Numerous studies have shown that the heterogeneous structure of interactions between elements of a complex system, which is usually represented as a complex network, can have a profound effect on the properties of the system [15]. Here, we examine a simple filtering process on a network. The input consists of the binary states of nodes in a given network. The filter outputs a 1 for every instance of a particular pattern of states on a node and its immediate neighbours, and a 0 when the pattern is absent. This generalises the filtering problem that is examined in Ref. [14] for binary inputs in a cyclical string (ring). Figure 1 represents the process applied to a small graph. We studied this problem on a variety of degree-regular graphs. We studied this problem on a variety of degree-regular graphs. We show that one may find the exact degeneracy distribution corresponding to the complete set of all possible inputs, up to relatively large system sizes, for any given graph. Just as in our previous study on rings, we show that the principal characteristics of the degeneracy distribution are asymptotically described by three key numbers. These numbers may be obtained exactly by simple arguments.
This problem serves as a tractable simple model to explore information processing in complex systems. In a graph, the connections between nodes create complex interactions between the filter output at each node. We show that the degeneracy distribution correctly captures this complexity. In particular, the entropy of the degeneracy distribution, called the relevance [11] is lower in deterministically constructed graphs and higher in random graphs. We show that relevance is maximum when the graph degree takes its smallest value greater than two. We compared two different filters, and found that the stronger filter (detecting less easily satisfied conditions) is more informative, because it is more sensitive to the state of neighboring nodes. Interestingly, our results for regular graphs of diverse architectures essentially depend only on a vertex degree, as Figure 6 demonstrates.

2. Filtering Statistics on a Ring

For orientation, we begin by studying nodes located on a ring. The input is a set of N strings of zeroes and ones { x i } , x i = 0 , 1 , of length n, assuming the periodic condition x 1 = x n + 1 . We consider the complete set of all possible unique inputs. Its size N is determined by the size n of inputs, N = 2 n .
The filter works, as follows: every instance of a specific pattern in the input (a short sequence of ones and zeroes) is marked by a one in the corresponding position in the output. All other positions are marked with zeroes. Multiple inputs correspond to the same output, creating a distribution of degeneracies of the outputs. We illustrate the results from a simple example filter pattern in Figure 2a,b. We observe complex degeneracy distributions reminiscent of those that were observed in, for example, Ref. [16].
The filter pattern may be arbitrary, but for illustrative purposes we will consider in particular a family of filters consisting of a string of ones with zeroes at either end: 010, 0110, 01110, etc. The length of the filter, w, can be used as a crude control parameter to observe the effects on resolution and relevance (see below). For convenience, we use the notation 1 l to indicate a chain of l ones. Thus, the filter of length w is 01 w 2 0 . In principle, for each of the 2 n possible inputs we can obtain, one by one, an output numerically. In practice, we use a more efficient algorithm that is described in Ref. [14]. Other types of filter patterns on a ring may be analyzed while using the same methods.

2.1. Degeneracy Distribution

We obtained the number of outputs N ( d ) for the full spectrum of degeneracies d for a variety of filters. The degeneracies d i , i = 1 , . . . , D , form a discrete spectrum of values, where d D is the largest degeneracy and d 1 = 1 . Figure 2 shows a few examples of the degeneracy distributions and cumulative degeneracy distributions. Here, N cum ( d i ) j = i D N ( d j ) . In particular, the total number of outputs is given by M ( n ) = N cum ( d 1 ) . The cumulative degeneracy distribution is broad, but it decays more rapidly than a power law.
The tail of the cumulative distribution has a notably complex structure resembling a staircase, with steep jumps between steps. The heights of these jumps are especially large in the region of high degeneracies. Similar structures may be observed in real systems, see, for example, Figure 3 of Ref. [16]. When the number of ones in the output is few, and some or all of them are separated by large gaps, such outputs have very similar but not exactly equal degeneracies for finite n, as shown in Ref. [14]. These closely located degeneracies lead to the staircase structure that was observed in the cumulative distribution.
Let us consider the evolution of the degeneracy distribution (and cumulative distribution) with input size n. The largest degeneracy d D ( n ) corresponds to the output with all zeroes, and for large n, grows as d D ( n ) z d n , where the value of z d depends on the specific filter. Naturally N ( d D , n ) = 1 . The number of outputs with degeneracy 1 behaves as N ( 1 , n ) z a n . Meanwhile, the total number of outputs, M ( n ) is asymptotically M ( n ) z g n . Together, these three key constants, z d , z g , and z a , delimit the asymptotic behaviour of the degeneracy distribution [14]. We list these numbers for a selection of short filter patterns on a ring in Table 1.
Rather surprisingly, one may obtain these asymptotic behaviours, and exact expressions for the constants z g , z d and z a through simple arguments. Each output consists of isolated ones that were separated by strings of zeroes of various lengths. By careful consideration of how valid outputs for a larger n can be constructed by adding specific segments to shorter outputs, one may construct recursive relations for the key quantities M ( n ) , d D ( n ) and N ( 1 , n ) , whose asymptotics are given by z g , z d and z a . To demonstrate this, we focus on the particular family of filter patterns that consist of a chain of ones with a zero at each end. The shortest such pattern is 010. Each member of this set may be indexed by the length of the filter, w 3 . The filter pattern length w determines the minimum number of zeroes, w 2 , between each one. We provide the derivation of z d , z g and z a for any w in Section 5.2 below.

2.2. Effect of Filter Length

In analogy with complex systems, we can consider each filter pattern as sampling the hidden state of a complex system [14]. The length of these filters acts as a crude control parameter of our sampling. Intuitively, we expect shorter filters to be more informative. The resolution of a sampling process, defined as the entropy of a sample:
H [ y ] = 1 N i = 1 N log d i N = d d N ( d , n ) N log d N
is a measure of the ability to distinguish, at the output, between different input states [11]. It takes its maximum value when there is a different output for each input. However in this case, all oof the utputs are distinct, and so these filters are not informative regarding the system being sampled. As shown in Ref. [11], the informativeness of a sample is captured by a different entropy measure, the relevance, being defined as
H [ d ] = d d N ( d , n ) N log d N ( d , n ) N .
Table 1 provides the results for a variety of short filter patterns. The family of filters composed of a string of ones with a zero at each end, 010 , 0110 , 01110 , etc., are indicated in boldface in the Table. The relevance is greater for shorter filters, but is actually zero for the shortest possible filters 0 and 1, as can be seen in the Table. The filter pattern 1 trivially reproduces the input, while 0 is inverse, and all outputs have degeneracy one. Within the family of filters 01 w 2 0 , the relevance is maximised for w = 3 .
Filter patterns of length two begin to have nontrivial properties. For the pattern 01, the number of outputs with degeneracy 1, N ( 1 , n ) , is either 0 (when n is odd) or 2 (when n is even), so z a = 1 . This is because the only outputs that have degeneracy one are periodic sequences of alternating 0’s and 1’s—there are two of these sequences n is even, and none when n odd. The maximum degeneracy d D ( n ) for this pattern grows by an integer factor of 4 for an increment in n of 5. In fact, it can be written explicitly,
d D ( n > 11 ) = 3 4 4 / 5 m o d ( n , 5 ) 4 n / 5 ,
where the coefficient of 4 n / 5 equals ( 3 / 4 4 / 5 ) 0 = 1 , ( 3 / 4 4 / 5 ) 4 = 0.959164 , ( 3 / 4 4 / 5 ) 3 = 0.969214 , ( 3 / 4 4 / 5 ) 2 = 0.979369 , and ( 3 / 4 4 / 5 ) 1 = 0.989631 for m o d ( n , 5 ) = 0 , 1, 2, 3, and 4, respectively. As a result, the number z d , which gives the asymptotic behaviour of the maximum degeneracy d D , is equal to 4 1 / 5 .
The degeneracy distribution of the filter 01 does not have the characteristic shape, and the broad tailed cumulative distribution seen in other filters, as can be seen in Figure 5c.The filter pattern 00 already produces more complexity, see Figure 5a. The degeneracy distribution and the cumulative distribution already have the shape and complexity seen in longer filters [14]. Curiously, N ( 1 , n ) = d D ( n ) + i n + ( i ) n (where i is the imaginary unit) where the last two terms give 0 , 2 , 0 , 2 , 0 , 2 , 0 , 2 , 0 , for n = 3 , 4 , 5 , 6 , . This means that z d = z a 1.618 .
The largest degeneracies behave as z d n for large n. The number z d quickly approaches 2 as the filter pattern length increases. Because N = 2 n , this means that almost all outputs concentrate in a few outputs and, in the limit, in a single state, i.e., all outputs are the same and the filter patterns are not informative. For the shortest filter patterns, the value of z d falls rapidly, while the relevance increases, indicating a transition to informative sampling. On the contrary, z g , which gives the total number of outputs M ( n ) , increases with decreasing filter length, as shorter filters have more possible outputs. Taken together, these results indicate that the maximally informative sampling for a given family of filters is the shortest pattern having a length greater than 1. This behavior is analogous to the transition that was observed in more complex problems (see for example [10]).
Note that one may also consider filters that are constructed as logical combinations of more than one pattern. For example, there are three kinds of ‘OR’ filters of size 2 + 2 (in fact, there are ( 16 4 ) / 2 = 6 combinations of different filters, but some are equivalent in terms of degeneracies). All of these OR filters have trivial degeneracies: 01 OR 10 detects when the next digit is different from the current one. Given the value of an input digit we can completely reconstruct that input, and, since the first input digit has two possible values, each output has degeneracy 2. The only degeneracy in the spectrum is 2 and its frequency is 2 n 1 , so z d = 1 and z g = 2 . There are no outputs of degeneracy one, N ( 1 , n ) = 0 . 00 OR 11 detects when the next digit is the same as the current one. The same reasoning as for the filter 01 OR 10 applies here: we can reconstruct the input completely from the output if we know a single digit of the input. Finally, 11 OR 10 (which is the same as 11 OR 01, 00 OR 10 and 00 OR 01) is equivalent to the filter 1 of length 1.

3. Filtering on Graphs

The process that is described in the previous Section may be generalised to an arbitrary graph, as follows. The input consists of the binary status for each node in the graph. We filter for a particular condition of the state of a node and of its immediate neighbors. If the state of the node and its neighbours matches the filter pattern, then the output for that node is 1, otherwise it is 0. We consider two examples: firstly, we set the output to 1 if the selected node has state 1 and all of its neighbours have state 0 (we refer to this filter as the strong rule, or SR). This filter that is applied on a ring is equivalent to the pattern 010 discussed in the previous Section. Secondly, we apply a less selective filter, outputting 1 if a node is in state 1 and any of its neighbours has state 0 (we call this filter the weak rule, or WR). We illustrate the application of these two filter patterns to a small graph in Figure 1.
These filters were applied to several families of degree-regular graphs. These were chosen to have a variety of structures and to vary in the degree of randomness in their construction, while being of comparable size and degree. We considered the following families of graphs: Small world graphs. These graphs are created by placing all nodes in a ring, and adding shortcuts between nodes to reach the desired degree. The locations of shortcuts were either random—we use the code SW(q) for these graphs, where q is the graph degree—or in a deterministic way—SWB(q); Random regular graphs (RRG); Tori, which are two dimensional square lattices with cyclic boundary conditions; and, Cages. These are graphs that are defined by two numbers, the degree q and the shortest cycle length g. A (q,g)-cage is the graph fulfilling these properties while having the smallest possible numbers n of nodes [17]. For each family of graphs, we considered different sizes, up to at least n = 30 , and, where possible, degrees, from q = 2 up to q = 5 . Finally, we investigated the second and third Apollonian networks (Apollonian 2 and 3), which are the only graphs here that are not degree regular.

3.1. Degeneracy Distributions

We give some examples of the resulting degeneracy distributions and cumulative degeneracy distributions, for the SR filter, in Figure 3, for random graphs, and Figure 4, for deterministically generated graphs. Note that the distributions for random graphs correspond to a single realization of the graph. We see that there is a dramatic difference in the distribution for random graphs between degree two and degree three. The degree two random regular graph necessarily consists of one or several closed rings, and the distribution is a little different than that shown in Figure 2a. For degree three, there is a great deal of randomness in the formation of the graph, and this is reflected in the degeneracy distribution, which becomes much more dense, having a fine structure that is not observed in deterministic graphs. For higher degrees, the distribution becomes less broad and, as we will discuss below, this corresponds to a reducing relevance with increasing degree.
We have not included examples of the distributions for the "small world" graphs. The deterministic small world graphs, SWB(q), produce distributions that are almost indistinguishable from those for other deterministic graphs of the same degree, while the random small world graphs, SW(q), generate degeneracy distributions very similar to those that are found for random regular graphs. For completeness, we give the degeneracy distributions and cumulative distributions for the same graphs while using the WR filter in Figure A1 and Figure A2 in Appendix A.
We plot some examples of some less typical degeneracy distributions in Figure 5. These are the 00 and 10 filters that are applied on a ring, and the SR filter applied to Apollonian networks (which are not degree regular).

3.2. Behaviour of Important Quantities

In Figure 6, we represent various quantities of interest as a function of graph degree, for the different graph families studied. We see that there is a clear separation in results between the two filters.
The weak filter (WR) detects when a node has state 1, while having at least one immediate neighbor with state 0. This neighbour condition is more easily satisfied the larger the number of neighbours q. Thus for large q, the number of possible outputs M ( n ) for the WR filter approaches the number of possible inputs, 2 n . We see in panel (e) that, indeed, the nth root of M ( n ) , which tends to z g for large n, approaches 2 for large q. By the same token, most outputs have a degeneracy of one, so the number of outputs of degeneracy one, N ( 1 , n ) also approaches 2 n ( z a approaching 2) for large q (panel (f)), with while the largest degeneracy d D ( n ) (whose asymptotic behaviour is given by z d ) only grows slowly with n, (panel (d)). The resolution H [ y ] measures how well the filter distinguishes different inputs, and as we see in panel (b) of Figure 6, and in agreement with the above observations, the resolution for the weak filter is high. The maximum possible value of H [ y ] is n ln 2 , which corresponds to a value of H [ y ] / n = 0.693 . . . in the figure. We see that the resolution is already close to this value at q = 5 .
The correct measure of how informative a sample of the observable variables of a complex system is about the underlying system is the relevance [11], H [ d ] . Such sampling is represented in our problem as the filtering process, and the interactions of the system by the graph structure. Our results confirm the importance of the relevance, as shown in Figure 6a. A higher relevance is measured in graphs having some randomness in their structure, while deterministic and regular graphs have lower relevance. This is particularly true for the strong filter SR, which produces a significantly higher relevance for random regular graphs (RRG) and rings with random shortcuts (SW), as compared with rings with deterministic shortcuts (SWB) and cages. The effect for the WR filter is much less pronounced.
The highest relevance occurs at degree q = 3 . The explanation for this is clear. Smaller filters generally produce higher relevance, as there are more outputs than for larger filters, except in the extreme limit of perfect reproduction of the input (maximum resolution), as shown above, and in [14]. Thus, we would expect lower values of q, which correspond to smaller SR filters, to have higher relevance. Meanwhile, and opposing this trend, graphs of degree q = 2 are necessarily either rings or sets of rings, which thus have a (nearly) deterministic structure and suffer a penalty in relevance. Additionally, notice the similarity of the degeneracy distributions for q = 2 in Figure 3 and Figure A1. The reduction in relevance in moving from q = 3 to q = 2 due to this regularity outweighing the expected increase due to the filter being smaller, as can be seen in the figure. To put it another way, the maximum relevance occurs at the smallest value of q for which the graph is non deterministic. This echoes our finding for filters on rings, for which the maximum relevance is found for the shortest filter that does not trivially reproduce the input [14]. We show the degeneracy ditribution for q = 3 for a deterministic graph in Figure 4, and for a random graph in Figure 3.
For the SR filter, in contrast to the weak filter, there is significant degeneracy of the outputs. The number of outputs is significantly less than the number of inputs, as is the number of outputs with degeneracy one. Similarly, the resolution is small for the SR filter, for all graph families, and decreases with q. The largest degeneracy, d D , on the other hand, does become very large. In the limit of large q, a large fraction of possible outputs give the same single output (all zeroes). In Figure 6c, the behaviour of the number of degeneracies, D ( n ) noticeably mirrors that of the relevance, H [ d ] . Note that data points for random graphs are averaged over several realisations of the graph.
In Table 2, we list the key degeneracy distribution statistics for the SR filter, for all families of graphs studied. Corresponding results for the WR filter may be found in Table A1. In addition to representing the data that are highlighted in Figure 6 in the quantitative form, these tables demonstrate the size effects with exponentially rapid convergence to the infinite n limit. In this work, we are mainly interested in regular graphs (graphs where nodes have a uniform degree), because we can better isolate the effects of varying the graph’s degree. Nevertheless, for the sake of completeness, we also present results for a few examples of non-regular graphs, namely Apollonian networks. In Table 2 and Table A1, each group of rows that are delimited by horizontal lines represents a different class of graphs. The four classes at the top of the tables, namely Apollonian networks, cage graphs, square lattices with periodic boundary conditions (torus), and rings with deterministic shortcuts, are deterministic graphs, while the two remaining classes represent random models, namely random regular graphs and rings with random shortcuts. The numbers that are presented for the random models result from averaging over 10 realizations sampled uniformly at random.
We include results for graphs of several sizes for each type of graph. This allows fpr one to see the convergence of values with increasing n. Within the set of consecutive rows of each class, the graphs are ordered by ascending degree, then by ascending number of nodes. The exception to this organization is the two first rows, which are for the non-regular Apollonian networks. All of these numbers, as well as the number of degeneracies D, for n = 30 are plotted in Figure 6.
For fully connected graphs, both the strong and weak rules produce trivial output and degeneracy distributions. Using the strong rule, for an output node y i to be 1, we must have x i = 1 and all other inputs x j i = 0 . Accordingly, when there is a one in the output string, we have y i = x i . There are n of these outputs, and their degeneracy is 1. Because, there can be no more than a single 1 in the output string, the only other possible output is a string of n zeros, which has degeneracy 2 n n . In this case, there are only two degeneracies in the degree distribution d 1 = 1 and d 2 = 2 n n , and their frequencies are N ( d 1 , n ) = n , and N ( d 2 , n ) = 1 , respectively.
On a fully connected graph under the weak rule, for an output node y i to be 1, it is enough to have x i = 1 and just one other input x j i = 0 . Therefore, when one or more of the inputs x i is 0 the output is equal to the input. The only situation in which the output does not match the input is for an input string of all 1’s, in which case the output is a strings of 0’s. The weak rule also onlyproduces two degeneracies d 1 = 1 and d 2 = 2 , with frequencies N ( d 1 , n ) = 2 n 2 and N ( d 2 , n ) = 1 .
It is worth noticing the relation with the class of cage graphs, which we have studied here: ( q , 3 ) -cage graphs are fully connected graphs with q + 1 nodes, while the ( q , 4 ) -cages are bipartite graphs with two fully connected layers of q nodes each. Bipartite graphs with two fully connected layers of the same size also result in trivial degeneracy distributions in both the strong and weak rules. With the strong rule applied to such a bipartite graph, for an output y i to be 1, we must have all inputs in the opposite layer to be x i = 0 . Conversely, when one input of one of the layers is x i = 1 all the outputs of the other layer are 0. Accordingly, when all of the input digits of one of the layers are all equal to 0 the outputs equal the inputs, y i = x i , and when there are 1’s in both layers of the input, the output is all 0’s. In this case, the degeneracy distribution also contains just two degeneracies, d 1 = 1 and d 2 = 2 n 2 n / 2 + 1 , with frequencies N ( d 1 , n ) = 2 n / 2 + 1 and N ( d 2 , n ) = 1 , respectively (notice there are n / 2 nodes in each layer). With the weak rule applied to symmetrical fully connected bipartite graphs, for an output y i to be 1, it is enough to have just one x i = 0 in the opposite layer. Therefore, all of the inputs with at least a 0 in each layer produce an output y i = x i . All of the inputs with at least one 0 in layer α and only 1’s in layer β produce an output consisting of all 0’s in layer α and all 1’s in layer β . Finally, if the input contains no 0’s in either layer, the output is y i = 0 for all i. Therefore, we have d 1 = 1 , d 2 = 2 , and d 3 = 2 n / 2 1 , with frequencies N ( d 1 , n ) = 2 n 2 n / 2 1 , N ( d 2 , n ) = 1 , and N ( d 3 , n ) = 1 , respectively.
From the trivial degeneracy distribution of these examples of graphs, i.e., fully connected and bipartite fully connected, we see that the entropies approach trivial limits for large system sizes. Namely, for the strong rule, while using Equations (1) and (2) for the output and degeneracy entropies, respectively, we see the in both types of graphs H [ y ] and H [ d ] both approach 0, since the distribution is dominated by a single degeneracy d 2 n with N ( d , n ) = 1 . With the weak rule, the entropy H [ y ] / n approaches ln 2 = 0.693 and H [ d ] approaches 0. In general, we expect that the entropies approach these limits as we increase the degree of the graphs that are generated by any model. Interestingly, this effect is already quite visible in Table 2 and Table A1, when we compare the values of the entropy for different degrees within each class of graphs, even for degrees up to only 5.

4. Discussion

In Ref. [14], we introduced a simple filtering problem that produces a rich and complex distribution of output degeneracies. The input is a cyclic sequence of zeroes and ones (a ring), and the process outputs a one in any position where a particular short pattern occurs, and a zero otherwise. The tractability of the problem means that we are able to give the complete degeneracy distribution, for the set of all possible inputs, up to relatively large system sizes.
In this paper, we have extended this problem to consider general graphs. The input is a digit 1 or 0 that is assigned to each node of the graph, and the output for each node is 1 if the state of the node and those of its immediate neighbours match a given filter pattern, and 0 otherwise. We demonstrate this process by calculating the full degeneracy distributions for various degree regular graphs with 30 or more nodes, while using two example filter patterns. The weak (WR) pattern registers a 1 if the corresponding node has state 1 and at least one of its neighbours has state 0. The strong (SR) pattern only registers 1 if the node is in state 1 and all of its neighbours are in state 0. We found degeneracy distributions having similar form and features to those seen in the simpler problem of filtering on a ring. We showed that three key features of the degeneracy distribution: the largest degeneracy d D ( n ) , the number of distinct outputs M ( n ) and the number of outputs having degeneracy one, N ( 1 , n ) behave as z d n , z g n and z a n , respectively, where the three numbers z d , z g , and z a take values from 1 to 2, depending on the graph and the filter. We find precise values for these three numbers for all the graphs studied.
The two filter examples used give quite different results, and have different behaviour with respect to graph degree. The key results are summarised by our main figure, Figure 6. The weak rule filter, WR, is only weakly sensitive to the neighborhood of a node and, hence, the structure of the graph. For large degree, it almost always produces an output matching the input. Thus, the WR filter produces large values for the ouput entropy, called the resolution, and small values for the degeneracy entropy, the relevance.
The strong rule filter, SR, on the other hand, imposes a condition on all the neighbours of the node where the filter is applied. This produces a much larger relevance (which is a measure of the informativeness of the filtering process) in random graphs, but much lower resolution, as the number of unique outputs is restricted. The relevance is the largest for the smallest graph degree not equal to two. Deterministically constructed graphs do not demonstrate the same peak in relevance, underlining the importance of this measure for detecting complexity. For a larger degree, the condition becomes more restrictive, so the number of outputs is reduced. The resolution decreases with increasing q, but so does the relevance. The reason that the q = 2 graphs do not give the maximum relevance is that these graphs necessarily have a highly predictable structure. All of the nodes lie in one or at most a few rings. One may observe that the degeneracy distributions and corresponding statistics are very similar for all families of graphs studied when q = 2 . The fact that the results are largely determined by degree indicates that it should be possible to write a mean field theory for the degeneracy distribution.
Similar complexity is observed in various complex systems, particularly with regard to information processing. In such systems, degeneracy distribution has been shown to be an important observation of the system. The entropy of this distribution, called the relevance, was shown [11] to be the relevant measure of complexity, and we showed that our simple problem reproduces many of the important qualitative phenomena that are observed in such systems. Therefore, the filtering problem is a highly tractable problem illuminating some of the key features of information processing in more complex systems. The extension of this problem to arbitrary graphs, makes the interactions between nodes more complex, and the analogy with the complex interactions of real complex systems more explicit.

5. Materials and Methods

5.1. Calculation of Degeneracy Distributions

The distributions that are shown in Figure 2, Figure 3, Figure 4 and Figure 5, Figure A1 and Figure A2, and the numbers presented in the Table 1, Table 2, and Table A1 and plotted in Figure 6 were experimentally obtained by considering all 2 n configurations of the n input binary variables x i individually. For a specified filter, or rule, we obtain the output variables y i corresponding to each input. From the frequency with which each output configuration appears, we build the degeneracy distribution.
For the sake of simplicity in the implementation of the computational experiments, we apply a basic indexing system to the output configurations. We start by initializing an array with 2 n positions populated with zeros, representing the frequency of observation of each output. Subsequently, as we systematically run through all of the possible inputs and calculate the corresponding outputs { y i } , we increment by 1 the value in position i y i 2 i of the array, where i = 0 , 1 , , n 1 . In the end of this process, each position of the array contains the frequency of its corresponding output. This method is memory intensive and, in some cases, uses much more memory than strictly necessary, since most of the positions of the frequency array will remain unchanged after initialization (corresponding to non-realizable, or unobserved, outputs). It is relatively simple to develop methods that do not require so much memory; however, they would necessarily require more CPU resources and they have a larger time complexity. Notice that our method’s time complexity is linear with the number of input configurations 2 n . In the case of rings, a much more efficient algorithm may be used, as described in Ref. [14].

5.2. Asymptotics of the Degeneracy Distribution on Rings

Here, we show how the asymptotic behaviour of the degeneracy distribution may be obtained. We focus on the particular family of filter patterns consisting of a chain of 1s with a 0 at each end. The shortest such pattern is 010. Each member of this set may be indexed by the length of the filter, w 3 . Each output consists of isolated ones that are separated by strings of zeroes of various lengths. The filter pattern length w determines the minimum number of zeroes, w 2 , between each one.
For w = 3 , chains of three or fewer zeroes in the output can only be produced in one way. Thus, outputs only containing such chains of zeroes have degeneracy 1. Possible such output sequences can be built up out of three kinds of building blocks, 01, 001, and 0001, put together in a ring of length n. Thus, we can find the number of outputs of degeneracy 1, N ( 1 , n ) , by counting all possible ways of building a ring of length n out of these blocks. We can do this recursively. For every configuration of length n 2 , we can obtain a valid configuration of length n by inserting the block 01 to the right, say, of a particular position i in the ring. This gives all of the configurations of length n with the block 01 to the right of i. Doing the same with configurations of length n 3 and blocks 001, we get all the configurations with a block 001 to the right of the block of i. Finally, repeating the procedure for configurations of length n 4 and blocks 0001, gives all the configurations with a block 0001 to the right of the block of i. Because every block must be 01, 001, or 0001, the union of these three sets is the full set of configurations of degeneracy 1 in rings of n digits. Thus, we can write
N ( 1 , n ) = N ( 1 , n 2 ) + N ( 1 , n 3 ) + N ( 1 , n 4 ) .
Starting from the first few values
N ( 1 , 1 ) = 0 , N ( 1 , 2 ) = 2 , N ( 1 , 3 ) = 3 , N ( 1 , 4 ) = 6 ,
we could build up the sequence and find N ( 1 , n ) for any n. However, it is not necessary to iterate through all values of n.
The explicit solution of this linear difference Equation (4) can be written in terms of the roots, z i , of the characteristic equation z 4 = z 2 + z + 1 :
N ( 1 , n ) = z 1 n + z 2 n + z 3 n + z 4 n ,
where the coefficients of the powers of the roots z i , all equal to one, are found form the initial condition, Equation (5). The root z 1 z a = 1.46557 . . . determines the large n asymptotics of N ( 1 , n ) .
For w 4 , it becomes possible for there to be chains of ones in the input that are shorter than that in the filter pattern. This means that only sequences of w 2 or w 1 zeroes in the output are not degenerate. Any sequence of w or more zeroes in the output can be produced in more than one way. Therefore, one may extend an input of degeneracy 1 only by inserting blocks of length w 1 and w. Hence, the recursion for N ( 1 , n ) becomes
N ( 1 , n ) = N ( 1 , n w + 1 ) + N ( 1 , n w ) .
The corresponding characteristic equation is
z w = z + 1 .
For large n, then,
N ( 1 , n ) z a n
where z a corresponds to the dominant solution of Equation (8).
The total number of possible outputs may be derived in a similar way. The presence of a 1 at a given position in the output uniquely corresponds to w fixed digits at the same position in the input. Any degeneracy therefore arises in the parts of the input corresponding to strings of zeroes in the output. The total number of possible outputs, M ( n ) , is then the number of ways of arranging isolated ones in a chain of length n, subject to this constraint. For every output of length n 1 , we can create an output of length n by inserting an additional 0. However, the same is not true for the digit 1. Any 1 in the output must be accompanied by a sequence of w 2 zeroes. We can account for this condition precisely by inserting the sequence 10 w 2 into any valid output of length n ( w 1 ) in a position immediately following a sequence of w 2 zeroes (at least one such sequence must exist). Thus M ( n ) = M ( n 1 ) + M ( n w + 1 ) , with initial conditions M ( n = w ) = 2 , M ( n < w ) = 1 . The elements of the sequence may be written in terms of the roots of the characteristic equation [18,19,20]
z w 1 = z w 2 + 1 .
Subsequently, z g corresponds to the largest root of this equation. We list values for various filter lengths (as well as for some other filter patterns) in Table 1.
The entire degeneracy distribution may be built up by considering chains of zeroes of different lengths in the output, and the number of different possible corresponding sections of the input. Let an output with m 1 ones contain m strings of zeroes with lengths 1 , 2 , . . . , m . Subsequently, the degeneracy of this output equals
d = i = 1 m d ˜ ( i ) .
Here, d ˜ ( ) is the number of input strings of length , having the first and last digits 0, which generate an output string of zeroes. This number plays an important role in our problem, similar to prime numbers in number theory, so we call the d ˜ ( ) prime degeneracies. Suppose that the output contains μ strings of zeroes of length , = w 2 , w 1 , w , . . . , where
m + w 2 μ = n .
Subsequently, Equation (11) may be rewritten
d = w 2 [ d ˜ ( ) ] μ
for m 1 .
The prime degeneracies d ˜ ( ) can be recursively obtained by taking three points into account:
(i) Relevant input configurations of length are obtained by inserting 0 or 1 into each relevant configuration of length 1 between the first and second positions of the sequence (recall that the first and last positions of the input sequence are fixed to 0).
(ii) Input strings of length beginning and/or ending with 01 w 2 0 are irrelevant, and so they should be removed from the set generated at the previous step. These configurations can be obtained by inserting the w 1 digits 1 w 2 0 into each relevant input string of length w + 1 between its first and second positions.
(iii) Finally, there exist input strings, compatible with the output string of zeroes, which cannot be obtained by inserting a single digit into relevant input strings of length 1 between their first and second positions. These are the input strings of length beginning with 01 w 1 0 (i.e., a string of ones one digit longer than in the filter). These inputs can be obtained by inserting 1 w 1 0 into each relevant input string of length w between their first and second positions.
Following these rules, the degeneracy of a string of zeroes at the output, prime degeneracy d ˜ ( ) , can be recursively written as a linear difference equation:
d ˜ ( ) = 2 d ˜ ( 1 ) d ˜ ( w + 1 ) + d ˜ ( w )
with the initial condition d ˜ ( 1 ) = d ˜ ( 2 ) = 1 , d ˜ ( ) = 2 2 for 3 < w and d ( w ) = 2 w 2 1 . The solution of Equation (14) may be explicitly expressed in terms of the complex roots of the characteristic equation
z w = 2 z w 1 z + 1 .
giving
d ˜ ( ) = C 1 z 1 + C 2 z 2 + C 3 z 3 + . . . + C w z w .
The largest real root of Equation (15), z 1 , say, dominates for large , and we identify it as z d :
d ˜ ( ) C 1 z d .
The case of the periodic output of length n with all digits 0 has to be separately considered. Consider one digit of the input, at an arbitrary position. The number of input configurations where this digit is 0 and the resulting output has only zeroes is given by d ˜ ( n + 1 ) , because the periodicity of the input means that this digit 0 plays the role of both first and last digit of the configurations of a string of n + 1 digits. If the digit is 1, then the number of input configurations equals 1 + i w 2 i d ˜ ( n i ) , where the sum over i accounts for the configurations, where the digit is in a group of i consecutive ones whose length is not w 2 , plus one configuration with all input digits equal to 1. Thus, the degeneracy of the output with all zeroes is given by
d D ( n ) = 1 + d ˜ ( n + 1 ) + i = 1 ; i w 2 n 1 i d ˜ ( n i ) ,
which is the largest possible degeneracy of an output of a given length. Applying the recursion relation for prime degeneracies d ˜ , Equation (14) to the terms on the right-hand side of Equation (18), we find that the largest degeneracy d D ( n ) satisfies the same difference equation as Equation (14) though with different initial condition
d D ( n ) = 2 d D ( n 1 ) d D ( n w + 1 ) + d D ( n w )
with the initial condition d D ( n ) = 2 n for n < w , and d D ( w ) = 2 w w . For large n, the solution is dominated by a single solution,
d D ( n ) z d n .

Author Contributions

All authors contributed equally substantially in all parts and aspects of the work. All authors have read and agreed to the published version of the manuscript.

Funding

This work was developed within the scope of the project i3N, UIDB/50025/2020 & UIDP/50025/2020, financed by national funds through the FCT/MEC. This work was also supported by National Funds through FCT, I. P. Project No. IF/00726/2015. R.A.d.C. acknowledges the FCT Grant No. CEECIND/04697/2017.

Conflicts of Interest

The authors declare no conflict of interest.

Appendix A. Further Results for the Weak Rule Filter

Here we plot degeneracy distributions, cumulative distributions, and tabulate measures for the weak rule filter, WR, for comparison with those given for the strong rule, SR, in the main body of the text above.
Figure A1. Degeneracy distributions (left) and cumulative degeneracy distributions (right) for outputs of the WR filter on selected deterministic graphs of degree 2 (a,b) 3 (c,d) and 4 (e,f).
Figure A1. Degeneracy distributions (left) and cumulative degeneracy distributions (right) for outputs of the WR filter on selected deterministic graphs of degree 2 (a,b) 3 (c,d) and 4 (e,f).
Entropy 22 01149 g0a1
Figure A2. Degeneracy distributions and cumulative degeneracy distributions for outputs of the WR filter on random regular graphs of degree 2 (a,b) 3 (c,d) and 4 (e,f).
Figure A2. Degeneracy distributions and cumulative degeneracy distributions for outputs of the WR filter on random regular graphs of degree 2 (a,b) 3 (c,d) and 4 (e,f).
Entropy 22 01149 g0a2
Table A1. Important values for the degeneracy distribution resulting from applying the weak rule (WR) filter to various graphs. The numbers M ( n ) n , d D ( n ) n and N ( 1 , n ) n approximate z g , z d and z a respectively. We also give the relevance per node H [ d ] / n and the resolution per node H [ y ] / n . Numbers for RRG(q) and SW(q) were obtained by averaging over 10 random realizations.
Table A1. Important values for the degeneracy distribution resulting from applying the weak rule (WR) filter to various graphs. The numbers M ( n ) n , d D ( n ) n and N ( 1 , n ) n approximate z g , z d and z a respectively. We also give the relevance per node H [ d ] / n and the resolution per node H [ y ] / n . Numbers for RRG(q) and SW(q) were obtained by averaging over 10 random realizations.
Graphn M ( n ) n d D ( n ) n N ( 1 , n ) n H [ d ] / n H [ y ] / n
Apollonian 271.954611.219011.916600.115190.66045
Apollonian 3161.947881.434351.911890.095940.64711
(3,5)-cage101.912021.214811.842950.137050.62974
(3,6)-cage141.913941.345901.837570.122710.63149
(3,7)-cage241.913481.250551.835110.114620.63259
(3,8)-cage301.913301.348971.833370.105590.63275
(4,5)-cage191.952481.211011.910270.082170.65878
(4,6)-cage261.953221.379951.910850.071880.65902
(5,5)-cage 1301.974611.163921.952200.044940.67453
(5,5)-cage 2301.974611.188541.952190.044950.67453
(5,5)-cage 3301.974611.215401.952200.044960.67453
(5,5)-cage 4301.974611.175851.952200.044950.67453
torus 3 × 3 91.956981.166531.923240.100880.66192
torus 4 × 4 161.955461.384851.921910.090240.65777
torus 5 × 5 251.954751.219931.919040.080760.65828
torus 6 × 5 301.954751.285171.918980.075680.65831
torus 10 × 3 301.956261.225221.919240.070720.66127
torus 8 × 4 321.955101.383921.919320.074750.65813
torus 6 × 6 361.954751.384001.918830.070340.65833
SWB(3)101.914921.355881.852120.145680.62873
SWB(3)201.915231.301001.848490.127310.62956
SWB(3)301.915231.356201.848510.112810.62956
SWB(4)121.956031.176051.919830.091520.66087
SWB(4)211.956261.212311.919230.080790.66127
SWB(4)301.956261.207901.919240.070710.66127
SWB(5)121.979291.176051.961310.058480.67803
SWB(5)201.979271.164421.960250.048810.67840
SWB(5)321.979271.148931.960210.041440.67842
RRG(2)101.760751.332141.628270.160290.53010
RRG(2)201.811411.295931.657460.143450.56553
RRG(2)301.831151.274471.670900.117280.58305
RRG(3)101.863501.310141.737600.184970.59914
RRG(3)201.889871.286901.786080.137660.61721
RRG(3)301.898951.279411.804830.115370.62310
RRG(4)101.927541.242931.866470.136020.64106
RRG(4)201.939171.250761.882720.096100.65019
RRG(4)301.945071.252471.896540.078190.65347
RRG(5)101.937641.269821.883400.123180.64808
RRG(5)201.959521.237901.923690.075200.66371
RRG(5)301.966161.228721.936410.057200.66839
SW(3)101.906921.256381.828550.153810.62737
SW(3)201.900251.272441.808650.132640.62404
SW(3)301.910931.272601.829410.109050.63105
SW(4)101.919721.268651.851540.145000.63556
SW(4)201.939921.255441.888530.099040.64926
SW(4)301.945841.266081.897760.078740.65403
SW(5)101.949421.234191.906500.110080.65650
SW(5)201.961501.235421.927090.073650.66525
SW(5)301.968891.231401.941840.054710.67024

References

  1. Song, J.; Marsili, M.; Jo, J. Emergence and relevance of criticality in deep learning. arXiv 2017, arXiv:1710.11324. [Google Scholar]
  2. Baek, S.K.; Bernhardsson, S.; Minnhagen, P. Zipf’s law unzipped. New J. Phys. 2011, 13, 043004. [Google Scholar] [CrossRef] [Green Version]
  3. Borda, M. Fundamentals in Information Theory and Coding; Springer: Berlin, Germany, 2011. [Google Scholar]
  4. Hankerson, D.C.; Harris, G.A.; Johnson, P.D., Jr. Introduction to Information Theory and Data Compression; CRC Press: New York, NY, USA, 2003. [Google Scholar]
  5. Tishby, N.; Pereira, F.C.; Bialek, W. The information bottleneck method. arXiv 2000, arXiv:physics/0004057. [Google Scholar]
  6. Gehani, A.; LaBean, T.; Reif, J. DNA-based cryptography. In Aspects of Molecular Computing; Springer: Berlin, Germany, 2003; p. 167. [Google Scholar]
  7. Hartmann, A.K.; Weigt, M. Phase Transitions in Combinatorial Optimization Problems; Whiley-VCH: Weinheim, Germany, 2005. [Google Scholar]
  8. Mézard, M.; Parisi, G.; Virasoro, M. Spin Glass Theory and Beyond: An Introduction to the Replica Method and Its Applications; World Scientific: Singapore, 1987. [Google Scholar]
  9. Keskar, N.S.; Mudigere, D.; Nocedal, J.; Smelyanskiy, M.; Tang, P.T.P. On large-batch training for deep learning: Generalization gap and sharp minima. arXiv 2016, arXiv:1609.04836. [Google Scholar]
  10. Cubero, R.; Marsili, M.; Roudi, Y. Minimum Description Length codes are critical. Entropy 2018, 20, 755. [Google Scholar] [CrossRef] [Green Version]
  11. Cubero, R.J.; Jo, J.; Marsili, M.; Roudi, Y.; Song, J. Minimally sufficient representations, maximally informative samples and Zipf’s law. arXiv 2018, arXiv:1808.00249. [Google Scholar]
  12. Haimovici, A.; Marsili, M. Criticality of mostly informative samples: A Bayesian model selection approach. J. Stat. Mech. Theory Exp. 2015, 2015, P10013. [Google Scholar] [CrossRef] [Green Version]
  13. Song, J.; Marsili, M.; Jo, J. Resolution and relevance trade-offs in deep learning. J. Stat. Mech. Theory Exp. 2018, 2018, 123406. [Google Scholar] [CrossRef] [Green Version]
  14. Baxter, G.; da Costa, R.; Dorogovtsev, S.; Mendes, J. Complex distributions emerging in filtering and compression. Phys. Rev. X 2020, 10, 011074. [Google Scholar] [CrossRef] [Green Version]
  15. Dorogovtsev, S.N.; Goltsev, A.V.; Mendes, J.F.F. Critical phenomena in complex networks. Rev. Mod. Phys. 2008, 80, 1275. [Google Scholar] [CrossRef] [Green Version]
  16. Marsili, M.; Mastromatteo, I.; Roudi, Y. On sampling and modeling complex systems. J. Stat. Mech. Theory Exp. 2013, 2013, P09003. [Google Scholar] [CrossRef]
  17. Meringer, M. Fast generation of regular graphs and construction of cages. J. Graph Theory 1999, 30, 137–146. [Google Scholar] [CrossRef]
  18. Hoggatt, V.E., Jr. Fibonacci and Lucas Numbers; Houghton Mifflin: Boston, MA, USA, 1969. [Google Scholar]
  19. Graham, R.L.; Knuth, D.E.; Patashnik, O.; Liu, S. Concrete Mathematics: A Foundation for Computer Science; Addison-Wesley Publishing Company: Reading, MA, USA, 1994. [Google Scholar]
  20. Koshy, T. Fibonacci and Lucas Numbers with Applications; John Wiley & Sons, Inc.: Hoboken, NJ, USA, 2019. [Google Scholar]
Figure 1. The application of different filters to a set of zeros and ones place on a graph. Each node of the input and output graphs is in one of two states, namely 0 (open circles) or 1 (closed circles). In the strong rule (SR) filter, an output node is one only when the corresponding input node is one and all of its neighbours are zero. In the weak rule (WR) filter, an output node is one when the corresponding input node is one and one or more of its neighbours are zero.
Figure 1. The application of different filters to a set of zeros and ones place on a graph. Each node of the input and output graphs is in one of two states, namely 0 (open circles) or 1 (closed circles). In the strong rule (SR) filter, an output node is one only when the corresponding input node is one and all of its neighbours are zero. In the weak rule (WR) filter, an output node is one when the corresponding input node is one and one or more of its neighbours are zero.
Entropy 22 01149 g001
Figure 2. Degeneracy distribution (a) and cumulative degeneracy distribution (b) for the filter 010 on a ring, and for its generalization on a torus, which is a 1 with four neighboring 0’s (panels (c,d)). These illustrate the typically broad, but complex, degeneracy distribution. The cumulative distribution exhibits a complex staircase like structure in the tail.
Figure 2. Degeneracy distribution (a) and cumulative degeneracy distribution (b) for the filter 010 on a ring, and for its generalization on a torus, which is a 1 with four neighboring 0’s (panels (c,d)). These illustrate the typically broad, but complex, degeneracy distribution. The cumulative distribution exhibits a complex staircase like structure in the tail.
Entropy 22 01149 g002
Figure 3. Evolution of the degeneracy distribution (left) and cumulative degeneracy distributions (right) with network degree for outputs of the SR filter on random regular graphs. There is a dramatic difference in the density and complexity of the distributions between degree 2 (a,b) and degree 3 (c,d). For degree 4 (e,f), the distributions appear to be similar, but are less broad.
Figure 3. Evolution of the degeneracy distribution (left) and cumulative degeneracy distributions (right) with network degree for outputs of the SR filter on random regular graphs. There is a dramatic difference in the density and complexity of the distributions between degree 2 (a,b) and degree 3 (c,d). For degree 4 (e,f), the distributions appear to be similar, but are less broad.
Entropy 22 01149 g003
Figure 4. Degeneracy distributions and cumulative degeneracy distributions for outputs of the SR filter on selected deterministic graphs of degree 2 (a,b) 3 (c,d), and 4 (e,f). We do not see the same increase in complexity for degrees that are greater than two that we observe in random graphs.
Figure 4. Degeneracy distributions and cumulative degeneracy distributions for outputs of the SR filter on selected deterministic graphs of degree 2 (a,b) 3 (c,d), and 4 (e,f). We do not see the same increase in complexity for degrees that are greater than two that we observe in random graphs.
Entropy 22 01149 g004
Figure 5. Degeneracy distributions and cumulative degeneracy distributions for outputs of different filters on selected deterministic graphs, showing a variety of possible distribution shapes. (a,b) The filter ‘00’ on a ring, (c,d) ‘01’ on a ring, (e,f) SR filter on an Apollonian graph with degree 3, and (g,h) WR filter on the same Apollonian graph.
Figure 5. Degeneracy distributions and cumulative degeneracy distributions for outputs of different filters on selected deterministic graphs, showing a variety of possible distribution shapes. (a,b) The filter ‘00’ on a ring, (c,d) ‘01’ on a ring, (e,f) SR filter on an Apollonian graph with degree 3, and (g,h) WR filter on the same Apollonian graph.
Entropy 22 01149 g005
Figure 6. Dependence of key observables related to the degeneracy distribution on graph degree q. (a) The relevance entropy H [ d ] scaled by system size n. (b) Resolution H [ y ] . (c) Total number of degeneracies D ( n ) for n = 30 . (d) The nth root of the largest degeneracy d D ( n ) , which tends to z d . (e) The nth root of the number of outputs M ( n ) , tending to z g . (f) The nth root of the number of outputs of degeneracy onem N ( 1 , n ) , tending to z a . There is a clear difference in the relevance entropy between random graphs and deterministic graphs under the SR filter, supporting the conclusion that this measure of entropy is the most informative. The entropy increases with a decreasing degree, except for degree two, which shows a sharp drop due to the highly predictable structure of degree two networks. These features are also reflected in the number of degeneracies, underlining the importance of studying the degeneracy distribution. The other quantities are almost entirely dependent on only network degree, and on which filter is used.
Figure 6. Dependence of key observables related to the degeneracy distribution on graph degree q. (a) The relevance entropy H [ d ] scaled by system size n. (b) Resolution H [ y ] . (c) Total number of degeneracies D ( n ) for n = 30 . (d) The nth root of the largest degeneracy d D ( n ) , which tends to z d . (e) The nth root of the number of outputs M ( n ) , tending to z g . (f) The nth root of the number of outputs of degeneracy onem N ( 1 , n ) , tending to z a . There is a clear difference in the relevance entropy between random graphs and deterministic graphs under the SR filter, supporting the conclusion that this measure of entropy is the most informative. The entropy increases with a decreasing degree, except for degree two, which shows a sharp drop due to the highly predictable structure of degree two networks. These features are also reflected in the number of degeneracies, underlining the importance of studying the degeneracy distribution. The other quantities are almost entirely dependent on only network degree, and on which filter is used.
Entropy 22 01149 g006
Table 1. Values of the numbers z g , z d , and z a for different filters. Note that we also included filter patterns that consist of all zeroes. For each filter, we also give the relevance per node H [ d ] / n (in nats) calculated from the degeneracy distribution and the resolution per node H [ y ] / n . For the sake of comparison, the standard entropy of the inputs of this size is H / n = ln 2 = 0.69315 . Finally, we include the number of distinct degeneracies D for each pattern. Inputs of size n = 36 were used, except for filters 00 and 10, for which n = 34 , and 000, for which n = 35 . Values for D for these three filters were extrapolated to n = 36 for comparison with other results.
Table 1. Values of the numbers z g , z d , and z a for different filters. Note that we also included filter patterns that consist of all zeroes. For each filter, we also give the relevance per node H [ d ] / n (in nats) calculated from the degeneracy distribution and the resolution per node H [ y ] / n . For the sake of comparison, the standard entropy of the inputs of this size is H / n = ln 2 = 0.69315 . Finally, we include the number of distinct degeneracies D for each pattern. Inputs of size n = 36 were used, except for filters 00 and 10, for which n = 34 , and 000, for which n = 35 . Values for D for these three filters were extrapolated to n = 36 for comparison with other results.
Pattern z g z d z a H [ d ] / n H [ y ] / n D
0 (or 1) 21200.693151
00 1.754881.618031.618030.182610.48468924(1)
10 1.618031.3195110.139540.46986513(1)
010 1.618031.754881.465570.172480.35187777
000 1.618031.839291.497100.1453(1)0.30105554(2)
0110 } 1.465571.866761.220740.118810.22387698
0100
0000 1.528951.927561.41963(2)0.088560.17673311
00100 1.465571.94171.380280.064340.13371291
01110 } 1.380281.933181.167300.063120.13562255
01100
01000
01010 1.443271.947891.324720.061170.12584301
00000 1.46557(2)1.965951.3652(2)0.051080.10052190
001100 } 1.380281.969311.2499(2)0.036060.07899197
001000
010010 1.37108(1)1.971131.1938(5)0.035860.07692218
011110 } 1.324721.967171.134720.034480.07939123
011100
011010
011000
010100
010000
000000 1.4176(2)1.983581.324860.029680.05606123
0110110 1.324721.985741.158(2)0.020840.04353129
0111110 } 1.285201.983861.112780.020160.0453564
0111010
01111110 1.255421.992031.096980.012130.0254636
011111110 1.232051.996051.085070.007270.0141125
0111111110 1.213151.998031.075770.004270.0077416
Table 2. Important values for the degeneracy distribution that results from applying the strong rule (SR) filter to various graphs. The numbers M ( n ) n , d D ( n ) n and N ( 1 , n ) n approximate z g , z d , and z a respectively. We also give the relevance per node H [ d ] / n and the resolution per node H [ y ] / n . Numbers for RRG(q) and SW(q) were obtained by averaging over 10 random realizations.
Table 2. Important values for the degeneracy distribution that results from applying the strong rule (SR) filter to various graphs. The numbers M ( n ) n , d D ( n ) n and N ( 1 , n ) n approximate z g , z d , and z a respectively. We also give the relevance per node H [ d ] / n and the resolution per node H [ y ] / n . Numbers for RRG(q) and SW(q) were obtained by averaging over 10 random realizations.
Graphn M ( n ) n d D ( n ) n N ( 1 , n ) n H [ d ] / n H [ y ] / n
Apollonian 271.472361.944201.408540.085040.12919
Apollonian 3161.523801.945961.490130.081480.13005
(3,5)-cage101.541991.889161.426940.104630.22185
(3,6)-cage141.549041.885491.469520.097410.22302
(3,7)-cage241.545161.886881.421910.124120.22268
(3,8)-cage301.546181.887221.446300.087630.22254
(4,5)-cage191.489911.944581.374940.080940.13458
(4,6)-cage261.501291.943861.449970.052430.13497
(5,5)-cage 1301.449281.971921.349320.041640.07890
(5,5)-cage 2301.449841.971911.355580.046020.07891
(5,5)-cage 3301.449541.971921.355430.042010.07890
(5,5)-cage 4301.449641.971911.352800.052640.07891
torus 3 × 3 91.479671.944801.423500.071650.13112
torus 4 × 4 161.511601.948431.468950.062050.13043
torus 5 × 5 251.500661.947521.417790.058570.13132
torus 6 × 5 301.502061.947541.422860.061590.13131
torus 10 × 3 301.489221.946781.397960.059330.13100
torus 8 × 4 321.507011.947851.449800.062510.13096
torus 6 × 6 361.504051.947561.444900.058900.13130
SWB(3)101.555641.893361.484570.109870.21539
SWB(3)201.553761.894501.463940.098500.21540
SWB(3)301.553771.894501.465730.102560.21541
SWB(4)121.488181.946531.400630.071070.13103
SWB(4)211.489241.946781.398020.064010.13100
SWB(4)301.489221.946781.397970.062110.13100
SWB(5)121.436181.973591.320070.044330.07602
SWB(5)201.434691.972231.316340.039270.07765
SWB(5)321.434631.972251.316070.035970.07765
RRG(2)101.559341.771221.419000.158690.32044
RRG(2)201.600611.762971.457440.161950.33977
RRG(2)301.612511.752891.461250.169970.35053
RRG(3)101.496141.879031.308370.175140.21708
RRG(3)201.525031.878471.377930.203730.22357
RRG(3)301.541291.877061.411340.214420.22868
RRG(4)101.440231.937701.302010.116480.13463
RRG(4)201.482051.933991.364900.140770.14659
RRG(4)301.484391.937971.377050.139590.14166
RRG(5)101.416411.951111.270980.100380.11042
RRG(5)201.424881.965131.307060.087220.08896
RRG(5)301.430681.968251.316530.083440.08393
SW(3)101.553561.871071.432160.166100.23788
SW(3)201.559981.863341.439510.220500.24702
SW(3)301.548421.880771.431670.216430.22839
SW(4)101.476371.914491.335140.143210.16987
SW(4)201.491571.933851.381410.142350.14885
SW(4)301.498111.935051.397640.145190.14804
SW(5)101.430171.950451.299190.098020.11240
SW(5)201.445751.959951.339550.097220.09962
SW(5)301.452511.965621.359620.089510.09047

Share and Cite

MDPI and ACS Style

Baxter, G.J.; da Costa, R.A.; Dorogovtsev, S.N.; Mendes, J.F.F. Filtering Statistics on Networks. Entropy 2020, 22, 1149. https://doi.org/10.3390/e22101149

AMA Style

Baxter GJ, da Costa RA, Dorogovtsev SN, Mendes JFF. Filtering Statistics on Networks. Entropy. 2020; 22(10):1149. https://doi.org/10.3390/e22101149

Chicago/Turabian Style

Baxter, G. J., R. A. da Costa, S. N. Dorogovtsev, and J. F. F. Mendes. 2020. "Filtering Statistics on Networks" Entropy 22, no. 10: 1149. https://doi.org/10.3390/e22101149

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop