arXiv:2610.37587q-bio.NCOct 2026

Manuscript Offprint

arXiv:2610.37587

Every route counts, but some count more: a max-plus view of the C. elegans brain

Emma Reyner-Fuentes, Sebastian Rudolph, Carmen Peláez-Moreno, Francisco J. Valverde-Albacete

Abstract

Brains do not simply add up every signal they receive: they select which routes dominate. Yet connectomes are usually analyzed with tools that sum over all paths and place neural states in Euclidean spaces, blurring the feedback circuits that may sustain internal states. Here we treat neural signaling as routing instead of diffusion and describe it with max-plus algebra, in which signals accumulate along a path and the strongest route prevails. We propose a model in which the functional connectome of Caenorhabditis elegans emerges from the time-varying combination of electrical, synaptic, monoaminergic, neuropeptidergic and hormonal layers, and analyze five networks within this framework. Each collapses onto a handful of dominant feedback loops, which recover well-characterized circuits and point to new candidates for experimental study. Unlike linear spectra, these structures keep the biological meaning of the data, and their order-based description suggests that brain states live in lattices rather than Euclidean spaces.

Keywords: Connectomics, Caenorhabditis elegans, Max-plus Algebra, Brain States, Lattices

1 Introduction

Understanding how nervous systems actually function is a central objective of neuroscience. A systems-level explanation requires relating the properties of individual neurons to the organization that emerges through their interactions. These interactions allow signals to propagate through the network and return through recurrent circuits, contributing to the ongoing evolution of neuronal activity. Determining how this organization arises from different mechanisms of communication, and how it changes over time, is an essential part of the effort to reverse engineer a nervous system [1]. This perspective places the relationship between connectivity and internal dynamics at the center of the analysis.

The nematode Caenorhabditis elegans provides a particularly tractable system in which to investigate this relationship. Its adult hermaphrodite contains 302 neurons, most of which can be individually identified across animals and experimental datasets. Reconstructions of its anatomical connectome describe the chemical synapses and electrical gap junctions linking these cells [2, 3]. Complementary maps characterize potential communication through monoamines and neuropeptides, while studies of hormonal signaling reveal additional mechanisms through which physiological conditions influence nervous-system function [4–6]. Together, these resources support the study of several forms of neuronal communication within a common cellular reference system, allowing network-level properties to be traced back to identified neurons and their interactions.

These communication mechanisms, however, differ in both signal-transmission times and the duration of their effects. Gap junctions permit direct ionic current between coupled cells, supporting electrical transmission with minimal delay. Fast chemical synaptic transmission involves neurotransmitter release and postsynaptic receptor activation, typically operating on a millisecond timescale. Monoaminergic signaling can modulate neuronal activity over seconds to minutes, while neuropeptidergic signaling spans rapid responses and sustained effects lasting minutes or longer [4, 7, 8]. Hormonal pathways further link neuronal operation to physiological processes whose temporal properties depend on the particular signaling system [6]. These temporal properties determine when each mechanism contributes to neuronal interaction and how long its effects persist.

For a model of neuronal interaction, both the onset and persistence of these effects matter. Rapid transmission can modify the immediate propagation of activity, while sustained modulation can change the contribution of particular connections over longer intervals. The resulting network therefore depends on which communication mechanisms are engaged and how their effects develop and decay. This temporal organization motivates a description in which the effective contribution of each connectivity layer varies over time.

These combined influences can be described through a functional connectome, understood here as the effective network of directed neuronal interactions under particular conditions. An experimental view of this network is provided by the signal-propagation atlas of Randi et al., which combines stimulation of individual neurons with whole-brain calcium imaging to measure responses in other identified cells [8]. The atlas captures interactions mediated by the communication routes engaged under the experimental conditions, including polysynaptic and extrasynaptic effects. Its network architecture differs from that of the anatomical connectome, illustrating how structural wiring and measured signal propagation provide complementary descriptions of neuronal organization [9]. Within a dynamical model, the functional connectome can consequently be viewed as a time-dependent operator whose organization reflects the contributions of the underlying signaling mechanisms.

The relevance of this temporal organization becomes apparent when considering internal states. In C. elegans, for example, persistent roaming and dwelling states are regulated by serotonergic and peptidergic signaling, linking changes in neuronal communication to sustained modes of operation [7]. Within and across behavioral states, population activity evolves through coordinated trajectories, usually described in low-dimensional Euclidean embeddings, and individual neurons can change how they encode behavior [10, 11]. Models of whole-brain activity further describe effective interactions through combinations of dynamical operators whose contributions vary with context [12]. These observations motivate the hypothesis that the persistence and reconfiguration of internal states may depend in part on the recurrent organization of the functional connectome. Examining that organization provides a way to identify the neuronal circuits and communication mechanisms that could support such regimes.

A useful mathematical description of this organization should make it possible to follow interactions from individual connections to complete neuronal circuits. Existing analyses of the C. elegans connectome have identified communication pathways, related neuronal position to network controllability, and used spectral representations to describe large-scale connectivity [13–15]. For the model considered here, a particularly relevant feature is feedback: directed routes through which an influence can return to a neuron or group of neurons. The weights of the connections along these routes determine which loops are most strongly represented according to the measurements encoded in the network. Their location and connections to the surrounding neurons provide a way to examine how local recurrent structures are embedded within a whole-system architecture. Changes in the available connections or their weights can then alter which recurrent routes dominate under a specified rule for combining interactions.

Most of these analyses, however, rest on assumptions that limit what they can say about feedback. Community detection and rich-club analyses usually work on undirected, often unweighted, representations and frequently merge chemical and electrical contacts into a single graph [16–18]; they describe segregation and integration, but not which modules are recurrent or how they are ordered along the direction of propagation. Linear spectral methods and centrality measures keep direction and weight, but add the contributions of all walks, so their leading mode is dominated by densely connected hubs and their remaining modes mix many neurons with signed or complex coordinates [19, 20]. What is missing is a description that takes direction and weight into account, keeps each communication mechanism separate, and returns the specific closed routes that dominate each network.

A further assumption concerns the space in which neural states are described. Whole-brain activity is usually represented as points of a Euclidean space, in which activity patterns combine by weighted superposition, their similarity is measured by distances, and structure is sought in linear subspaces or low-dimensional manifolds [10, 21]. This representation carries an implicit model of how signals propagate. In the taxonomy of network communication models, connectome signalling ranges from diffusion, in which influence spreads along all available walks and accumulates additively, to routing, in which signals follow selected optimal paths [19]. A Euclidean state space is natural only at the diffusive end of this spectrum. Selective forms of polysynaptic signalling, such as thresholding, competition between inputs, and the gating of one pathway by another, choose among alternative routes rather than add them, so the states they produce are not closed under superposition. Moreover, many questions about internal states are questions of order rather than distance: which neurons are engaged together, which activity patterns contain others, and which patterns are indistinguishable to downstream neurons. A Euclidean space provides a metric but no intrinsic hierarchy between qualitatively distinct states. These properties call for a state space organized by order and selection, a lattice in which patterns are compared by inclusion and any two patterns have a well-defined least upper bound and greatest lower bound.

Max-plus algebra offers a direct way to formulate this perspective. It is a tropical algebra in which maximization replaces ordinary addition and ordinary addition replaces multiplication [22, 23]. Applied to a weighted network, these operations accumulate weights along successive connections and select the largest accumulated weight among alternative routes. Max-plus algebra is therefore the algebra of the routing end of the communication spectrum. Its order dual, min-plus algebra, replaces maximization by minimization and is the algebra of shortest-path routing; the two are exchanged by a change of sign, so that selecting the strongest route on weights is equivalent to selecting the shortest route on costs. Together they make the spaces of states ordered by construction: the maximum of two activity patterns is their least upper bound and their minimum is their greatest lower bound, so these spaces form lattices rather than Euclidean vector spaces. This makes dominant paths and recurrent loops explicit objects of the analysis. Its value for the present problem lies in linking a network-level description to identifiable feedback circuits and in providing an algebraic rule through which changes in connectivity can change the dominant recurrent organization.

This path-based interpretation also gives spectral analysis a concrete biological meaning. Max-plus spectral quantities identify recurrent loops with the greatest average edge weight and describe their relation to the neurons connected to them. The interpretation of that weight follows the biological quantity represented in each dataset, such as anatomical contact extent, supported ligand–receptor interactions, or measured response amplitude. The resulting description connects compact recurrent circuits with the larger neuronal domains that can influence them or be reached from them. The generalized framework also accommodates networks containing several recurrent regions, preserving their distinct organization and directed relationships [24][24]. These properties make max-plus suitable for examining a model in which signaling mechanisms acting over different timescales alter the relative prominence of recurrent routes.

Tropical algebra has also been explored as a tool for modelling neuronal networks. In a preprint, Patel [25] proposed a threshold model of timing dynamics, in which each neuron updates its state once a fraction of its inputs has arrived, and used its max-plus formulation as a first attempt to extract backbone structures from the C. elegans neuronal network. That approach simulates activity on a single wiring diagram; here, we instead analyze the spectral structure of the connectivity itself, separately for each communication layer.

We therefore propose a model in which the time-dependent functional connectome emerges from the max-plus composition of electrical, chemical-synaptic, monoaminergic, neuropeptidergic, and hormonal connectivity layers, each engaged to a different extent over time. Within this model, the activation of a signaling layer can merge recurrent neuronal groups or change which feedback circuit dominates within them, providing a candidate mechanism for the reconfiguration of internal states.

The available datasets measure different biological quantities, from anatomical contact extent to ligand–receptor compatibility and evoked calcium responses, and cannot yet be combined into this composite operator. We therefore analyze the five available networks (gap junctions, chemical synapses, monoaminergic and neuropeptidergic signaling, and the experimentally measured signal-propagation atlas) separately within the same max-plus framework. For each one we identify its recurrent domains, its dominant feedback circuits, the upstream and downstream neuronal populations attached to them, and we relate these structures to known neuronal function.

This paper focuses on the biological application and presents the method at the level needed to interpret the results. The underlying theory, in which the nervous system is treated as a dynamical system over a dual pair of max-plus and min-plus semifields whose state space is organized as a hierarchy of lattices rather than a Euclidean space, is developed in a companion paper [26].

References (58)