Complexity and Vulnerability Analysis of the C. Elegans Gap Junction Connectome

: We apply a network complexity measure to the gap junction network of the somatic nervous system of C. elegans and ﬁnd that it possesses a much higher complexity than we might expect from its degree distribution alone. This “excess” complexity is seen to be caused by a relatively small set of connections involving command interneurons. We describe a method which progressively deletes these “complexity-causing” connections, and ﬁnd that when these are eliminated, the network becomes signiﬁcantly less complex than a random network. Furthermore, this result implicates the previously-identiﬁed set of neurons from the synaptic network’s “rich club” as the structural components encoding the network’s excess complexity. This study and our method thus support a view of the gap junction Connectome as consisting of a rather low-complexity network component whose symmetry is broken by the unique connectivities of singularly important rich club neurons, sharply increasing the complexity of the network.


Introduction
It is increasingly clear that the specific connectivities of biological networks are far from random.In neuroscience, the overall behavior and dynamics of a neuronal network is dictated both by the properties of individual neurons, and by the specific complex structure of the network through which they are connected [1,2].Understanding the behavior of such a neuronal network must therefore involve inferring its underlying structural properties and design principles.However, it is unclear a priori which structural features of a network are most important in doing so.Distinguishing these important features is one of the goals in quantifying the complexity of a network, as a measure of network complexity could allow us to determine which features of a network cause it to be complex, and to infer then the purpose of these complex structures.
As of yet, there exists no broadly accepted definition of network complexity which would allow for its unambiguous quantification, though many quantitative measures have been proposed and applied [3,4].A necessary property of any such measure, however, is that it must distinguish complex, structured networks from networks which are either completely random or completely ordered.One such measure was developed by Sakhanenko and Galas [5] who defined a general complexity measure, based in the Kolmogorov complexity, which correctly vanishes in these limiting cases.Indeed, even this simple approach appears capable of indicating certain complex structures existing within the network [5,6].
If a network is determined via some measure to be highly complex, the question yet remains: what is the source of that complexity?That is, what are the substructures or features of the network which make it "complex"?Can these measures be applied in such a way so as to identify complexity-causing structures within the network, and can we attribute biophysiological meaning to these structures?
The nematode C. elegans is an ideal system in which to attempt to address such questions.It remains the only organism for which the full connectivity of its neuronal network (its "Connectome") is known.The C. elegans Connectome consists of both directed synaptic connections and undirected gap junction connections among its 302 neurons [7].These neurons can be broadly classified as sensory neurons (those receiving external sensory input), motorneurons (those synapsing onto muscle), or, otherwise, as interneurons (if lacking explicit sensory input or motor output) [7].Despite not directly receiving external input or driving motor output, many interneurons play important computational roles in the network.For example, the "command" interneurons are individually crucial to the control of locomotion; for example, if the command interneuron pair AVAL/R is ablated, the ability of the worm to crawl backwards is severely diminished, whereas ablating the command interneuron pair AVBL/R diminishes the ability of the worm to crawl forwards [8].
Even with its relatively small nervous system, C. elegans is capable of a fairly broad range of behaviors.In addition to responding to a range of mechanical and chemical stimuli [8][9][10], the worm must navigate [11], mate [12,13], and lay eggs [14,15].The network controls these various behaviors through shared pathways of overlapping subcircuits, all while the structure appears to approximately minimize the wiring cost between nodes [16].Previous studies indicate that, as with other neuronal networks [17][18][19][20][21][22][23], the network partially accomplishes this trade-off through its "rich club" structure, having a highly-connected hub of "rich" neurons with high betweenness centrality [24].The specifically-tuned complex structure of the network may ultimately encode behavioral responses to inputs.For example, simulations of Connectome dynamics which treat all neurons as identical units are capable, through their connectivity structure alone, of generating biophysiologically reasonable dynamical responses to specific inputs (e.g., in [25]).
It was recently demonstrated by Kim et al. [26] that vulnerability analysis is capable of identifying many important functional structures within the C. elegans connectome.The core idea of vulnerability analysis is that important links or nodes within the network can be identified by considering the amount by which different structural properties of the network change when said link/node is removed.Kim et al. computationally analyzed the effects of removing any one given node/edge from the Connectome on its clustering coefficient, global efficiency, and betweenness centrality, and found that such an approach identified biophysiologically relevant subcircuits.
In this paper, we study the complexity of the C. elegans gap junction Connectome based on our previously defined measure and find that it is vastly more complex than a random graph with the same degree distribution.Its complexity score is 16.5 standard deviations above the randomly-expected mean (see Methods Section 4.5 for specifics).We then extend the use of vulnerability analysis on the C. elegans connectome by considering how the complexity of the graph is altered if any given edge is deleted.A large fraction of the network's complexity is seen to be caused by a relatively small set of connections involving the known "command" interneurons.We then extend the idea of vulnerability analysis by using a greedy algorithm to iteratively delete these "complexity-causing" connections.When these links are eliminated, the network becomes significantly less complex than a random graph.Furthermore, the deleted structure is seen to have a clear biophysical interpretation: our algorithm implicates a set of edges involving neurons from the synaptic network's "rich club" as being the source of the network's excess complexity.Thus, this study supports a view of the Connectome as consisting of a low-complexity structure whose complexity is dramatically enhanced by the addition of unique connectivities of the network's rich club.

Investigation of Small, Random Networks
We begin our exploration of complexity/vulnerability analysis by considering graphs small enough to be easily visualized.We generated 10,000 random Erdős-Rényi networks, all of which had exactly 12 nodes each of degree four.This node count and degree were chosen heuristically such that the network would be small, but still large enough to allow for a very large number of possible connection schemes and complex structures.We investigate the complexity of these graphs by calculating the measure Ψ(G), the aforementioned complexity measure developed in [5].As detailed further in the Methods section, this measure is calculated as: where the graph G consists of N nodes, K i is a measure of the complexity of the individual node i, and m ij is the mutual information between the connection patterns of nodes i and j.By construction, the summand vanishes when either m ij = 0 (as in random graphs) or m ij = 1 (when i and j are completely redundant).Complex networks reside between these two limiting cases.
Calculating Ψ(G) for each of the small random graphs gives the distribution shown in Figure 1a.The very lowest and very highest values found were Ψ(G min ) = 0.120 and Ψ(G max ) = 0.553, respectively.The graphs corresponding to these extreme values are shown in Figure 1a. is reduced if that edge is removed.We progressively delete the edges with the highest ∆Ψ at each step.
In this example, most of the complexity in the graph is contained within the upper pentagram-shaped connection structure; the elimination ordering reveals these "complexity-causing" structures.
In Figure 1b, we illustrate our greedy edge-elimination procedure, starting with the high-complexity graph G max .At each step, we individually delete every edge and calculate what the complexity of the graph would be without said edge.The edge causing the largest drop in Ψ (i.e., the highest magnitude of ∆Ψ) is then chosen for deletion, giving the partially-deleted graph G (1) max .This procedure is then iterated, recalculating each edge's ∆Ψ within the partially deleted graph (i.e., ∆Ψ is re-calculated for all edges at each step).
It is interesting that the greedy procedure eliminates almost all of the edges from the pentagram-shaped structure before deleting any edges from the rest of the network.This suggests that the iterative elimination procedure may best reduce the network complexity by initially "attacking" a distinct structure within the network, rather than multiple, or more widely distributed structures.This suggests that we can usefully search for the property that unites the edges chosen for early elimination, as it may carry some structural significance.Specifically, we should consider any biophysiological significance associated with these edges; we suspect that the identified complex structures may be biophysically relevant, as complex network structures are capable of encoding biophysically important network dynamics [2,27].

Application to C. Elegans Data
Using the C. elegans connectome data from Varshney et al. [7], we then proceed to apply the same edge-eliminating procedure to the C. elegans gap junction network.We focus here on the subnetwork of 253 somatic neurons which have both synaptic and gap junction connections.For this analysis, we ignore the weighting of each connection (i.e., number of gap junctions and gap junction connection strengths), simply labeling each pair of neurons as connected or unconnected.Thus, we represent the network as a binary, undirected graph with 253 nodes, connected by individual 514 edges.
Calculating Ψ for this network reveals that, by this measure, the C. elegans gap junction network is extraordinarily complex.We compare the actual gap junction network's complexity to the complexity of 10,000 randomly-rewired networks, all of which have the exact same degree distribution (see Methods Section 4.5 for more information).Given its degree distribution, a random graph would have a complexity within an approximately normal distribution with a mean and standard deviation of Ψ(G rand ) = 0.001173 ± 0.000015.The neuron graph, however, has a complexity of Ψ(G gap ) = 0.00143, about 16.5 standard deviations above the random graph average.This distribution is plotted in comparison with the actual value in Figure 2.For comparison, we generated 10,000 random networks with the same degree distribution and calculated Ψ(G) for each.The distribution of Ψ(G rand ) is approximately normal, with an average score of Ψ(G rand ) = 0.001173 ± 0.000015.Thus, the actual C. elegans gap junction network has a complexity 16.5 standard deviations above the mean value for its degree distribution.
Which edges are most responsible for this unusually high complexity?We use our edge deletion approach to explore this question.We begin by calculating ∆Ψ for every edge (i.e., the amount by which the network complexity would change were that edge deleted).The distribution of ∆Ψ values is shown in Figure 3.A few outliers are immediately apparent: the link between the command interneuron pair AVAL/AVAR, and the link between another command interneuron pair AVBL/AVBR.This suggests that the important biophysiological role of these neurons may be reflected in the relative complexity of their connection schemes.It is interesting that all edges to the left of the red dotted line implicate at least one interneuron.
Distribution of ∆Ψ values for the intact C. elegans gap junction connectome.The link between the command interneuron pair AVAL/AVAR is a clear outlier, causing by far the largest drop in network complexity.It is notable that every edge below the red line at ∆Ψ = −1.083involves at least one interneuron.Another notable feature is that some deletions will actually increase the complexity: deleting the edge between the motor neurons VB03/VA07 causes Ψ(G) to increase slightly.
We repeat the iterative, greedy edge-elimination procedure illustrated in Figure 1b, this time altering the C. elegans network.As it is intended to do, the procedure reduces the complexity of the network monotonically, eventually reducing the complexity to zero by deleting all edges.The complexity decay curve for the neuron graph is plotted in blue in Figure 4a.At each iteration, we generated 256 random graphs with the same modified degree distribution and plotted this distribution of random graph complexities in red.(b) the same data converted to z-score (i.e., the number of standard deviations by which the actual network differs from random).The C. elegans gap junction network is initially much more complex than randomly expected, but as we successively delete edges, it reveals an underlying network that is much less complex than random.This comparison is made clearer by converting the same data to z-scores (i.e., the number of standard deviations by which the C. elegans curve is away from the mean).This z-score curve is plotted in Figure 4b.As edges are progressively deleted, the complexity decays towards the randomly expected value, lying near the middle of the random range after about 100 deletions (about 25% of the edges).As edge deletion continues, however, the graph ultimately becomes much less complex than what one expects for a random graph.This suggests that the the graph consists of a low complexity component, connected with a smaller component connected to it that is responsible for the resulting excess complexity of the entire structure.

Complex Structure and the Rich Club
The discovery of a minority of edges that are particularly important to the complex structure of the network is reminiscent of the graph's "rich club" property.Rich clubs within a graph are sets of high-degree nodes (the so-called "rich" nodes) which are highly interconnected.A rich node is more likely to connect with other rich nodes than one would expect at random, forming a highly-interconnected hub within the network that is important to the network's function.This rich club structure appears in many complex networks [28] and helps to achieve a topologically desirable network (e.g., with high efficiency and centrality) for a relatively small wiring cost [16].In neuroscience, a rich club architecture appears to be present in systems ranging from C. elegans to humans [17][18][19][20][21][22][23][24].
The C. elegans synaptic network was shown by Towlson et al. [24] to possess a rich club structure.We consider the set of neurons which they identified as the "rich club" due to their associated biological significance, though it should be noted that the gap junction network does not itself have the same rich club structure.Using the terminology of Towlson et al. [24], each edge in the graph can be classified as a "club" edge (if it connects two rich nodes), a "feeder" edge (if it connects a rich, high degree node to a poor node), or a "local" edge (if it connects two poor nodes).This is illustrated in Figure 5a.In Figure 5b, we label each edge in our deletion order according to these classes.This shows that the iterative procedure disproportionately targets club and feeder edges: out of the first 100 edge deletions, 19% are local, 74% are feeder, and 7% are club.By comparison, the intact network edges are about 69% local, 29% feeder, and 2% club.A χ 2 -test shows that the probability of randomly drawing as many feeder and club edges out of the network is less than p < 10 −25 ; thus, the edge selection process heavily targets the rich club.This disproportionate targeting can be seen by looking at the percentage of each class that has been deleted at each iteration, as shown in Figure 5c.[24], the C. elegans synaptic Connectome can be understood to have a "rich club" structure.Edges are classified as "Club" (if between two rich nodes), "Feeder" (if between a rich and poor node), or "Local" (if between two poor nodes); (b) the same curve as Figure 4b, with each deleted edge labeled by class.In the region where the graph is much more complex than average, the procedure disproportionately targets Club and Feeder edges; (c) the fraction of each class which has been deleted at each iteration.

Complex Structure beyond Degree
The rich club is important to several complex topological properties of the network, but a node's membership in the rich club is ultimately determined by its degree.The "rich club" nodes we consider are defined from their synaptic connectivity, and we are considering the gap junction network, but there is a positive correlation between a node's gap junction degree and synaptic degree.It is therefore possible that this complexity-reduction procedure could yield a similar result (i.e., apparent targeting of the rich club nodes) if it were simply reducing the degrees of the highest-degree nodes.Figure 6a plots the initial degree distribution of the graph and shows that the first implicated edge (i 0 , j 0 ) is indeed between the first and second mostly highly-connected nodes.Could such a simple criterion explain these results, or is the procedure indeed targeting a more sophisticated structure?
Referring to Figure 1b, we suspect that the edge elimination order is not so trivial.After all, the procedure continued to target the pentagram-shaped structure even after those nodes had been trimmed to a very low degree.Indeed, we see similar results in the C. elegans network: Figure 6b shows how highly ranking the degree of the targeted nodes are at each step of the elimination procedure (i.e., whether or not the edge includes the 1st most highly connected node, the 2nd most highly connected node, and so on).Note that, at any given step, there are no more than 18 unique degrees (as there are many nodes sharing the same number of connections).For example, the second edge to be deleted is the edge between AVBR and AVBL, which have degrees 29 and 24, respectively.These are the 3rd and 4th highest degrees in the network at this point of the procedure, and so a blue marker is plotted at a node degree rank of 3. As can be seen in Figure 6b, many of the subsequent edge deletions do not implicate the most highly connected nodes.The highest-complexity edges are not simply determined by the degree of the implicated nodes.which we label by their relative rank from highest to lowest.The first implicated edge (i 0 , j 0 ) connects nodes with degree ranks 1 and 2, such that its "Maximum Degree Rank" is 1; (b) the maximum degree rank of the subsequently targeted edges, plotted in blue.The green line indicates the number of unique degrees, which changes as the degree distribution is altered.The procedure does tend to trim edges to relatively highly connected nodes, but this relationship is not the driving criterion, and it does not simply choose edges based upon connectivity level alone.

Robustness to Specific Elimination Order
How robust are these results to the specific order in which edges are eliminated?To address this, we conduct 50 trials in which we calculate the decay of Ψ(G) when we delete all club edges in a random order, then delete all feeder edges in a random order, and then delete all local edges in a random order.The resulting distribution of complexity curves is shown in Figure 7.The random Club/Feeder/Local edge deletion orderings result in a smaller decrease in complexity than the algorithmically-determined ordering, which is unsurprising given the "greedy" nature of our edge-elimination procedure.However, the result is much more drastic when we conduct 50 trials in which we first delete the local edges, then the feeder edges, and then the club edges.This suggests that it is indeed appropriate to think of the network's high complexity as being disproportionately caused by the club and feeder edges.In 50 trials, we deleted all club edges in a random order, then all feeder edges, and then all local edges.The red/green/blue bands show the average resulting complexity curve within one standard deviation.This was repeated for 50 trials in which we instead deleted local edges, then feeder edges, and then club edges.The resulting distribution of complexity curves is indicated by the blue/green/red bands.The edge deletion order prescribed by our algorithm (i.e., the blue curve in Figure 4a) is shown by the black dotted line.A random Club/Feeder/Local deletion order results in a significantly slower complexity decay than our algorithm prescribes, but leads to a much larger decrease in complexity than the Local/Feeder/Club ordering.Thus, the results implicating the rich club are robust to the specific edge deletion order.

Robustness to Initial Edge Choice
We may similarly investigate the effect of choosing a different edge at the first deletion step.Consider again the example in Figure 1b, in which the iterative procedure initially targets nearly all of the edges within the upper pentagram-shaped structure.We interpreted this to mean that the pentagram-shaped structure was primarily responsible for the high complexity of the network.However, one could posit that the lower portion of the graph was similarly complex and that initially deleting an edge in the upper portion simply biased the iterative procedure towards targeting that portion of the graph.Does the initial edge deletion bias the procedure in this manner?
We directly investigated this possibility by repeating the analysis of Figure 5, but with an arbitrary edge chosen at the first deletion step (followed by the greedy iterative deletion procedure).This was repeated for all possible choices of initial edge deletions (i.e., for all 514 edges).When AVAL/AVAR is chosen initially (as in the full greedy procedure), the results are, of course, identical to the previous results.For all of the other 513 initializations, however, the greedy procedure chooses AVAL/AVAR as the very next edge to be deleted.Furthermore, the procedure continues to target club/feeder edges in largely the same manner.Figure 8 shows the order in which edges of each class are deleted for all possible initial edge choices.Despite minor variations in edge ordering, the order in which edges are targeted by the greedy procedure appears to be largely robust to the initial edge choice, and the disproportionate targeting of club/feeder edges does not depend upon this initialization.

Discussion
This study shows that the C. elegans neuron gap-junction network is vastly more complex than one would expect at random given its degree distribution.Expanding the concept of vulnerability analysis, we analyzed the complexity vulnerability of the graph and used an iterative procedure to successively eliminate edges based upon how much each deletion reduced graph complexity.After many edge deletions, we were left with a graph much less complex than an equivalent random graph.This suggests that the majority of the graph consists of a low complexity component that can be described fairly simply, and a subset of edges, which is responsible for the excess complexity of the network.This complexity-causing set of edges belongs disproportionately to the neurons which are members of the associated synaptic network's previously-identified rich club.
The fact that the procedure reduces the graph to one with a remarkably low complexity raises interesting questions concerning the topology of graphs.Many graphs, particularly in biology and neuroscience and including the C. elegans neuronal network, are rather well-described by a collection of over-represented motifs [7,[29][30][31].A common view of neuronal networks, as consisting of a highly structured graph of repeated motifs with the repetitive structure violated by important hub neurons, is interesting to compare with the results in Figure 4. Is the iterative procedure simply stripping away these hub structures to leave a simple, highly-repetitive core?Given that this complexity measure disappears when the mutual information between nodes approaches 1, it is plausible that particularly motif-heavy graphs, consisting of sets of nodes having similar connectivity patterns/high mutual information, may be classified as having a particularly low complexity by this measure.The exact relationship between motif structures, symmetry and symmetry-breaking and their effects upon network complexity measures deserves a deeper theoretical investigation, which will be the subject of future work.
These results also suggest that future work should investigate the broader range of structural properties to which this complexity measure is sensitive.It is important to note that this procedure does not simply identify rich-club structure; recall that we consider the "rich club" set of neurons due to its previously-identified importance, but this set is defined from the synaptic network, not the gap junction network, which lacks such structure.What functionally relevant structures does this approach reveal, and what are the associated topological properties?For example, one could consider the change in average betweenness centrality as nodes are iteratively deleted.Initially, the network has an average betweenness which is a factor of about 1.29 higher than that of a random graph (with the same degree distribution).After 40 deletions, this factor is reduced to 1.22.This small reduction does not appear to explain the large reduction in relative complexity over the same range (as seen in Figure 4).Other preliminary work has been similarly inconclusive, suggesting that the relationship between complexity and other topological measures is nontrivial.The more general relationship between network complexity and various other global topological properties of the network is beyond the scope of this paper, but the subject of future work.
How would the identified structures differ if one uses a different quantification of network complexity?There is no universally recognized quantification of network complexity, and many such measures exist [3,4,32,33].Furthermore, the Ψ measure is inherently dependent only on pairwise measures of connectivity in the sense that it is a sum over pairs of mutual information between nodes based on their connectivity.Measures that include higher numbers of nodes and their informational interdependence might reveal other features [23,32,33].It should be possible to perform a similar deconstruction procedure using other measures, which may distinguish different features and could prove useful both as a tool for the exploration of the structure of networks and for illuminating the differences between the measures themselves.
Further development of network complexity quantification and exploration of different measures could incorporate information which we have ignored thus far in our analysis.Since we used an undirected network complexity measure, we focused upon the undirected gap junction network.However, the directed synaptic network is also vitally important, and the method can be modified to incorporate directed connections.Similarly, we consider the unweighted binary graph, ignoring edge-weighting data such as the number of gap junctions between each node.Future analysis could make use of such information, perhaps by using previously-developed extensions of this complexity measure to include multiple edge types [6].
In spite of these current limitations, this study strongly suggests that quantifying a network's global complexity, performing vulnerability analysis using this complexity measure, and then iteratively eliminating edges based upon their vulnerability at each step is a useful direction for identifying physiologically important structures within complex graphs.Such methods are increasingly important as increasingly large and difficult-to-comprehend neuronal networks are measured by the burgeoning field of connectomics [34][35][36].In a real network, the interaction between the structural features, the behavior and flexibility of the network function, the vulnerability to damage and the costs of wiring the networks are fundamental.The trade-offs can only be fully understood by careful quantitative analysis of the kind begun here.Given the potentially scale-invariant nature of neuroscience networks [24], the architectural principles we infer from these complex networks may yield broader design insights into the function and structure of nervous system networks.

Network Complexity Ψ(G)
The graph complexity measure Ψ(G) is an information theoretic measure with a basis in the Kolmogorov complexity and was introduced and explored for undirected binary graphs by Sakhanenko and Galas [5].Consider an undirected binary graph with N nodes, characterized by a symmetric adjacency matrix A = {a ij }, where a ij = 1 if nodes i and j are connected, and a ij = 0 if they are not.The measure is based on a Shannon-like description of information, such that the fundamental properties of a node are its connection probabilities.We denote the connection probability of node i by: Similarly, the disconnection probability is given by: The complexity of an individual node is then given by: We can then calculate the mutual information between two nodes i an j: The graph complexity Ψ can then be calculated from the mutual informations and individual node complexities: Note that the summands will disappear when either m ij = 0 or m ij = 1.The former case is when the connectivity patterns of the two nodes contain no information about the other, as is the case of infinite random graphs.The latter case occurs when two nodes carry perfect information about the other, as is the case with completely connected or completely disconnected graphs.Thus, the graph complexity will disappear in both of these limiting cases.

∆Ψ(G) and Iterative Edge Removal
Our greedy algorithm for complexity vulnerability analysis consists of iteratively deleting the graph edges whose deletions cause the largest reduction in graph complexity.That is, for an initial adjacency matrix A (0) , we consider all one-edge deletions and recalculate the resulting Ψ, finding the edge (i 1 , j 1 ) which causes the largest reduction in Ψ when deleted.We refer to the new adjacency matrix, with the single edge deletion, as A (1) .We then repeat this process with A (1)  to identify (i 2 , j 2 ).This is repeated until all N edges are deleted, yielding an edge deletion order e = {(i 1 , j 1 ), (i 2 , j 2 ), (i 3 , j 3 ), ..., (i N , j N )}.
For notational purposes, we define a matrix ∆(i, j) which is equal to one at entry (i, j) and is zero for all other entries.That is, This allows us to write the adjacency matrix with a single edge deletion at (i , j ) as A − ∆(i , j ).We select the first edge to delete by calculating: That is, we choose the indices of the edge deletion resulting in the graph with the least complexity.We can write the resulting adjacency matrix as: We write the corresponding change in complexity as: This process is repeated iteratively until all edges are deleted.At the nth edge deletion we may write:

Illustrative Example: 12 Nodes of Four Degrees
Using the Python package graph-tool [37], we generated 10,000 random Erdős-Rényi graphs, all consisting of 12 nodes which all have degree four.We calculated Ψ for all of these 10,000 graphs, giving the distribution seen in Figure 1a.We then applied the iterative edge-removal procedure from Section 4.2 to the random graph which had the highest value of Ψ.This gave the edge removal ordering as partially visualized in Figure 1b.

The C. Elegans Connectome
The C. elegans neuronal network consists of 302 neurons connected via both a directed synaptic network (with 6393 synapses) and undirected gap junction network (with 890 gap junctions) [7].The bulk of these neurons, 282 out of 302, belong to the somatic nervous system.We use the connectivity data for the giant component of the somatic nervous system, consisting of 279 neurons, as provided by Varshney et al. [7], who consolidated and updated earlier connectome measurements [38][39][40].
Since this work focuses on the structure of undirected graphs, our analysis is of the gap junction network.All of the 279 neurons within the network are connected synaptically, but many lack gap junctions entirely.We eliminate the neurons that have no gap junction connections, leaving the 253 somatic neurons with both synaptic and gap junction connections.Many nodes share multiple connections, but we simplify our analysis by considering the unweighted network: a ij = 1 if nodes i and j have one or more gap junction connections, or a ij = 0 if they have no gap junction connections.Thus, our adjacency matrix A (0) consists of 253 nodes connected by 514 binary edges.

Comparison of C. elegans to Random Connectivity
To compare the complexity of the actual Connectome against what we might expect at random, we use the random_rewire function included within the Python package graph-tool [37], selecting the "uncorrelated" rewiring model.This procedure is described in the graph-tool documentation and can be summarized as follows: for each edge (i, j), the algorithm randomly selects a second edge (i , j ).It then attempts to swap the target of each edge, such that the edges would then become (i, j ) and (i , j).This swap is rejected if it would result in parallel edges or self-loops.This swapping procedure is repeated for all edges (i, j) within the graph.This rewires a graph to randomize connections while preserving the exact degree sequence.
For the distribution of Figure 2, we generated 10,000 randomly-rewired graphs with the same degree distribution as the C. elegans gap junction network, yielding the displayed distribution with a mean and standard deviation of Ψ(G rand ) = 0.001173 ± 0.000015.As we iteratively eliminated edges, we wished to continue comparing the reduced complexity against what we would expect at random.At each step n, we therefore randomly rewired the partially deleted graph A (n) to generate 256 graphs with the same (partially deleted) degree distribution.

C. elegans Rich Club
The "rich club" is defined by the rich club coefficient Φ(k), which is defined by the connection probability between nodes of degree greater than k.For some degree k, define N >k as the number of nodes with degree greater than k, and M >k as the number of connections between said nodes.The rich club coefficient is then just the ratio between the actual number of connections M >k and the number of possible connections [24,28,41]: Towlson et al. [24] found that the C. elegans Connectome has a significant rich club coefficient for degrees 35 ≤ k ≤ 73, which implicates the following 11 nodes as belonging to the rich club: AVAL/R, AVBL/R, AVDL/R, AVEL/R, PVCL/R, and DVA.It is important to note that this is the set of neurons which we use as the "rich club" of the network, and we do not do any re-calculation of the rich club based on our particular graph; Towlson calculates the rich club set from a binary form of the synaptic network, whereas we consider a binary form of the gap junction network.We refer to this set of neurons due to its known biological significance.

Figure 1 .
Figure 1.(a)To illustrate our method, we generated 10,000 random Erdős-Rényi networks, all with 12 nodes of four degrees.The distribution of our complexity measure Ψ(G) is shown, along with the networks having the lowest and highest Ψ(G) values; (b) ∆Ψ of an edge is the amount by which Ψ(G) is reduced if that edge is removed.We progressively delete the edges with the highest ∆Ψ at each step.In this example, most of the complexity in the graph is contained within the upper pentagram-shaped connection structure; the elimination ordering reveals these "complexity-causing" structures.

Figure 2 .
Figure 2. The C. elegans gap junction connectome has a complexity score of Ψ(G gap ) = 0.00143.For comparison, we generated 10,000 random networks with the same degree distribution and calculated Ψ(G) for each.The distribution of Ψ(G rand ) is approximately normal, with an average score of Ψ(G rand ) = 0.001173 ± 0.000015.Thus, the actual C. elegans gap junction network has a complexity 16.5 standard deviations above the mean value for its degree distribution.

Figure 4 .
Figure 4. (a) We iteratively delete connections with the highest ∆Ψ, causing the complexity to decay as shown by the blue curve.At each point, we calculate Ψ(G rand ) for 256 random graphs with the same degree distribution.The red line shows the mean Ψ(G rand ), with the red band showing the range ±2σ;(b) the same data converted to z-score (i.e., the number of standard deviations by which the actual network differs from random).The C. elegans gap junction network is initially much more complex than randomly expected, but as we successively delete edges, it reveals an underlying network that is much less complex than random.

Figure 5 .
Figure 5. (a)As in[24], the C. elegans synaptic Connectome can be understood to have a "rich club" structure.Edges are classified as "Club" (if between two rich nodes), "Feeder" (if between a rich and poor node), or "Local" (if between two poor nodes); (b) the same curve as Figure4b, with each deleted edge labeled by class.In the region where the graph is much more complex than average, the procedure disproportionately targets Club and Feeder edges; (c) the fraction of each class which has been deleted at each iteration.

Figure 6 .
Figure 6.(a) the initial degree distribution of the graph.Each node has one of 16 unique degree values, which we label by their relative rank from highest to lowest.The first implicated edge (i 0 , j 0 ) connects nodes with degree ranks 1 and 2, such that its "Maximum Degree Rank" is 1; (b) the maximum degree rank of the subsequently targeted edges, plotted in blue.The green line indicates the number of unique degrees, which changes as the degree distribution is altered.The procedure does tend to trim edges to relatively highly connected nodes, but this relationship is not the driving criterion, and it does not simply choose edges based upon connectivity level alone.

Figure 7 .
Figure 7.In 50 trials, we deleted all club edges in a random order, then all feeder edges, and then all local edges.The red/green/blue bands show the average resulting complexity curve within one standard deviation.This was repeated for 50 trials in which we instead deleted local edges, then feeder edges, and then club edges.The resulting distribution of complexity curves is indicated by the blue/green/red bands.The edge deletion order prescribed by our algorithm (i.e., the blue curve in Figure4a) is shown by the black dotted line.A random Club/Feeder/Local deletion order results in a significantly slower complexity decay than our algorithm prescribes, but leads to a much larger decrease in complexity than the Local/Feeder/Club ordering.Thus, the results implicating the rich club are robust to the specific edge deletion order.

Figure 8 .
Figure 8.The greedy edge-elimination procedure was repeated for all possible choices of initial edge deletions (i.e., the edge chosen for deletion at the first step).Each row corresponds to a different choice of initial edge, with each column showing the class of the edges subsequently deleted by the iterative procedure.Club and Feeder edges are targeted disproportionately regardless of the initial edge choice.