1. Introduction
Complex networks are arrangements of objects connected by a coupling strength and given a particular topology [
1,
2,
3]. Many natural or artificial phenomena can be represented or described as complex networks, such as research collaborator networks, the WWW, wireless communications, power energy generation and delivery, ecosystems, etc. Thus, the motivation to study these objects and their dynamics becomes more and more interesting and important. Since the beginning of the study of these structures, many problems have been launched and analyzed; a description of problems can be found in [
4]. One of the most studied problems is the synchronization of dynamical systems connected in a network [
5,
6,
7,
8] mainly due to the potential applications. Synchronization is a phenomenon that occurs when a group of oscillators or nodes in a network exhibit similar behavior. This behavior can be observed in a wide range of systems, from biological networks [
9,
10] such as brain neurons to technological networks such as power grids [
11,
12]. The study of synchronization in complex networks has been an area of active research in recent years, with researchers investigating various types of couplings between network nodes [
13]. However, a common consideration in the literature is that the coupling strength between nodes or systems is positive (attractive) or, in some cases, zero; the justification for such a consideration is based on the stability of the network, since positive couplings are sufficient but not necessary for network stability [
14,
15,
16]. The condition of positive or same-sign couplings restricts the possibility of studying different kinds of dynamic behavior between nodes. Negative couplings can represent, for instance, inhibitory behavior in a neuronal network; in [
17], a probabilistic study on the stability of inhibitory and excitatory neuronal networks was presented, where stability was analyzed using the eigenvalues of the coupling matrix. In biological systems, there is evidence of negative autoregulation [
18] and negative regulation [
19,
20]. All these references pose the problem of considering negative couplings in the study of complex networks as a generalization of the types of behavior these networks can exhibit.
However, it is well known that in the real world, interactions between systems are both attractive and repulsive. It is also known that negative (repulsive) interactions produce dynamical phenomena such as instability or anti-phase behaviors. Interesting results have been published in this context [
21,
22,
23]. This refers to the presence of both attractive (positive) and repulsive (negative) interactions between nodes in a network. These interactions can arise due to a variety of factors, such as the physical distance between nodes, the strength of their connections, and the dynamics of their interactions. For instance, in [
24], the authors present a memristive coupling between two hyperbolic-type Hopfield neurons, which by itself can be a positive or negative coupling, and also show that the synchronization depends on a certain time delay in the coupling.
The use of repulsive and attractive couplings has been applied to study social balance in the dynamics of friendship [
25], where attractive coupling corresponds to friendly relationships, whereas non-friendly relationships are modeled as negative or repulsive couplings. On the other hand, in the field of neuronal synchronization, [
26] describes inhibitory and excitatory interactions in neurons, and establishes conditions on such interactions. The most important is that, in order to satisfy or achieve a particular behavior—especially stability—the couplings in the inhibitory subnetwork must be negative, whereas in the excitatory subnetwork the couplings must be positive. Moreover, there is evidence that synchronization between two neural models depends on the excitatory neuron rather than the inhibitory one [
27].
Research has shown that attractive and repulsive coupling can lead to a rich array of synchronization patterns in complex networks. For example, in some cases, the presence of repulsive interactions can prevent complete synchronization from occurring, resulting in a partially synchronized state [
28]. In other cases, attractive and repulsive interactions can lead to the emergence of complex spatial patterns, with groups of nodes synchronizing in specific regions of the network.
The study of synchronization in complex networks with both attractive and repulsive couplings has important implications for understanding the behavior of real-world systems. For example, in the field of neuroscience, it can help shed light on how brain regions communicate and synchronize during different cognitive processes [
29,
30,
31]. In the field of engineering, it can inform the design and control of power grids and other complex systems [
11,
32] to name just a few.
Some results have been reported regarding the analysis of Laplacian matrices and their eigenvalues with mixed negative and positive elements. For instance, in [
33], the authors reported signed weights for trees. There is reported evidence that negative couplings can lead to instability or anti-phase synchronization in networks [
22,
34]. In multiplexed networks, anti-phase synchronization has been observed when all couplings are repulsive in one layer and attractive in the other, and the inter-layer links are negative [
34,
35]. Therefore, it could be said that negative or repulsive couplings lead to anti-phase synchronization, in-phase clustering, or instabilities in the network. In the cited references, all connections between nodes are either repulsive or attractive, which leads to stability issues, as this configuration may induce both positive and negative eigenvalues in the coupling matrix [
36].
The dynamical stability of synchronization in the network is the most important concern. Thus, negative couplings must be arranged in a specific structure within the connectivity matrix—that is, such couplings must have a particular weight and specific location within the network. If the Laplacian matrix possesses sets of positive, zero, and negative eigenvalues, stability cannot be achieved. The authors in [
36] analyzed several Laplacian matrices and determined such eigenvalue sets, concluding that for stability, there must exist exactly one zero eigenvalue and all remaining eigenvalues must have the same sign.
It is clear that stability is the main concern in the study and design of dynamical systems and networks; therefore, an algorithm for designing mixed couplings is relevant. In terms of synchronization of dynamical complex networks with attractive and repulsive weighted couplings, it is of great interest to achieve complete and in-phase synchronization. In this contribution, an algorithm to determine a family of connectivity matrices is presented. The main characteristics of the proposal are as follows: (a) The algorithm ensures the condition of one zero eigenvalue and a set of eigenvalues with the same sign (diffusivity condition). (b) The elements of the resulting matrix are located in specific positions to preserve the location of the eigenvalues. (c) The algorithm provides a family of symmetric real matrices with adjustable parameters. (d) These parameters can be used to shift the eigenvalues within the desired region of the complex plane. Compared with the aforementioned results [
22,
33,
34,
35,
36], our method allows, a priori, the definition of the eigenvalue distribution, and therefore the stability of the dynamical network can be ensured through proper adjustment of the weights between nodes.
A method is proposed to construct matrices of size
, with mixed positive and negative elements, that satisfy the eigenvalue conditions for stability [
36]. The proposed method allows the construction of matrices representing all connected networks with different weights between nodes. It is important to emphasize that the negative couplings are symmetric, which means that
. In this context, it is widely reported that for diffusively coupled nodes [
37,
38,
39], the coupling matrix satisfies the zero row-sum condition and therefore, meets the stability requirements reported in [
36].
The paper is organized as follows:
Section 2 describes the stability of complex networks and presents the main contribution regarding the generation of families of connectivity matrices. In
Section 3, an example of synchronization is provided to illustrate the feasibility of the procedure. Finally,
Section 4 offers concluding remarks.
2. Model Network with Mixed Couplings
Consider a dynamical network of
N identical nodes, diffusively and linearly coupled, whose dynamics are governed by the following state equations
where
are the state variables of the system node
i,
is a continuous vector field,
represents the coupling strength and
is the outer coupling matrix that specifies which state variables are coupled. The coupling elements
are the entries of the matrix
C which corresponds to the Laplacian matrix of the network (possibly signed), due to its symmetric structure and zero row-sum property and are defined such that if there is a connection between nodes
i and
j then
; otherwise
, the diagonal elements are defined as
. Note that the matrix
C defined above corresponds to the (signed) Laplacian matrix of the network, since it satisfies the zero row-sum condition and symmetric structure characteristic of Laplacian formulations.
The eigenvalues of the Laplacian matrix of a network determine the stability of synchronization. These conditions form the basis from which the synchronization of complex networks emerges [
40,
41,
42]. Consider Equation (
1) with the coupling strength set to
for simplicity. In this case, the coupling strength is assigned to each pair of connected nodes and may differ across the network. In other words, the strength between any two nodes can vary and may be either positive or negative. Accordingly, the stability depends on the placement of the eigenvalues, which is influenced by the weights between the nodes.
It is well known that the coupling strength acts as an amplifying factor of the influence of node i on node j. This influence can be either positive or negative, leading to distinct behaviors in the dynamics of the affected nodes. The main objective is to achieve synchronization between systems coupled through both negative and positive weights. To this end, an algorithm is proposed for constructing coupling matrices that include some negative weights. These coupling matrices satisfy the connectivity condition, namely, they have one eigenvalue with multiplicity one.
It is also known that connectivity matrices are symmetric and satisfy the zero row and column sum conditions, which guarantee the existence of a spanning tree—i.e., there are no isolated nodes. The algorithm for generating coupling matrices with mixed weights is stated as follows:
Theorem 1. Let be a symmetric connectivity matrix with . If the elements of C are given as follows:
Step 1: Off-diagonal elements ()
The off-diagonal elements follow a periodic pattern based on :where , , and , are adjustable parameters. Step 2: Diagonal elements ()
The diagonal elements are computed to ensure that the sum of each row is zero: Additionally, the diagonal elements can be expressed as:where: Then, the matrices C generated by the algorithm satisfy the following properties:
- 1.
Symmetry: for all and the eigenvalues of the matrices are real.
- 2.
Zero row sum: for each row i.
- 3.
Eigenvalue structure: The matrix has exactly one zero eigenvalue () and negative eigenvalues ( for ). This means that there is only a eigenvector.
- 4.
Semidefiniteness: The matrix is negative semidefinite, i.e., for all .
- 5.
Zero Determinant: .
Proof. To demonstrate the properties of C, we analyze its spectral characteristics:
Symmetry
Suppose that the matrix C is given as step 1 and step 2, this is for all with and , then then by construction of the matrices this description corresponds to a symmetric matrix and this ensures the existence of real eigenvalues.
Zero row sum
Let us suppose that the condition holds, this implies that there exists a zero eigenvalue, the vector lies in the null space of C. Therefore, is always an eigenvalue of C.
Negative Eigenvalues
Suppose from Step 2 that the condition holds, there is one and only one , since the null space of the matrix C is of dimension one, thus, there are matrices with and by Gershgorin’s theorem it can be confirmed that all eigenvalues lie in the left half-plane of the complex plane and the remaining eigenvalues are negative due to the structure of C, which resembles a generalized Laplacian matrix with mixed weights.
Semidefiniteness via Sylvester’s Criterion
Suppose that the matrix C is constructed by Steps 1 and 2, by induction let us suppose that for a matrix , the leading principal minors alternate in sign starting with a negative one. Now construct by adding an extra row and column, preserving symmetry and the pattern of the off-diagonal elements as defined in the Steps 1 and 2. Although the diagonal elements change slightly, they follow a predictable pattern and remain negative with absolute values dominating the sum of the off-diagonal entries in their respective rows. Therefore, the leading principal minors of order 1 to in have the same sign as those in , since the overall structure of the submatrices remains sufficiently stable. This implies that the minors of also alternate in sign starting with negative. Hence, by induction, the sign pattern holds for the family of matrices, and by Sylvester criterion the matrices C are negative semidefinite.
Therefore, these properties not only validate the construction of the matrix but also the stability and this complete the proof. □
The algorithm proposed in Theorem 1 defines a family of symmetric matrices that fulfill the essential conditions for stability in complex networks with mixed couplings (attractive and repulsive). These matrices have one single zero eigenvalue associated with a constant eigenvector 1 and the remaining eigenvalues are real and negative, then the resulting matrices are negative semidefinite. This property guarantees that the network is diffusive and capable of achieving complete and in-phase synchronization, even with strategically placed negative couplings. In addition, the adjustable parameters u and v allow for the modification of the spectral placement of the eigenvalues on the left half of the complex plane. This feature, therefore, provides the ability to tune the dynamics of the network for specific application needs.
It is well known that synchronization in networks with diffusive couplings is strongly influenced by the spectral behavior of the matrix that defines the connections between nodes. In this work, the matrix C acts as a Laplacian matrix, and its eigenvalues play a key role in the stability analysis of the system. In particular, it is required that the nonzero eigenvalues be located in the negative region of the real axis (or the complex plane), as this condition guarantees convergence to a synchronized regime. Therefore, examining the position of the eigenvalues is not a minor issue, but a fundamental part of the design of connectivity matrices that allow stable synchronization.
The algorithm can be stated in the steps as follows. Given integers , the following steps define a family of coupling matrices:
Choose parameters , as connection weights.
Construct the symmetric matrix
C using Equations (
1)–(4), where each entry is defined based on a modular positioning.
Verify that the resulting matrix satisfies one zero eigenvalue and the remaining eigenvalues negative.
Remark 1. The method uses the module to generate the mixed couplings of the connectivity matrix. This function defines the periodicity and symmetry of the matrix entries, which in turn determine the location of the eigenvalues.
With this algorithm, one can generate coupling matrices with mixed positive and negative values. An interesting observation is that the Gershgorin Theorem is used to localize the eigenvalues of the connectivity matrices, in the sense that the spectrum of the matrix
C is fully contained into the union of the Gershgorin disks
. Let
be the closed disk centered at
with radius
; therefore, every eigenvalue of
C lies within at least one of these disks
. However, for the proposed method, some of the radius
are greater than the absolute value of the center
. As a result some regions of the union of the disks lie in the right-hand said complex plane, as illustrated in
Figure 1. For stability analysis, however, this information alone is not sufficient.
Equations (
2)–(
4) provide the rules to construct a coupling matrix with some negative weights, depending on the values of the parameters
u and
v. It is important to note, on the one hand, that these values are chosen as connection weights; and on the other hand, that this represents a specific structure of a weighted coupling matrix. Nevertheless, many other configurations could be designed.
Remark 2. It is important to emphasize that this algorithm produces a particular family of stable connectivity matrices. However, variations of the algorithm could be developed that still yield stable matrices.
2.1. Example of Mixed Connectivity Matrix
Now, in order to illustrate the method, consider the case for
. Following Equations (
2)–(
4) the coupling matrix is then given as follows
for this example, there are two nodes negatively coupled, and the rest of the nodes are positively connected. The eigenvalues of this matrix are
and
, which clearly are negative and one is zero. The behavior of the eigenvalues for
and
are illustrated in
Figure 2, where it is evident that one eigenvalue is equal to zero and the rest of the eigenvalues are in general negative, note that as the values of
u and
v increases the eigenvalues decrease.
For
, the eigenvalues are
and
, see
Figure 3 and the behavior of the eigenvalues is again decreasing.
For , the eigenvalues are given by and . For , using numerical values for u and v, we find that all the eigenvalues of the matrix family C satisfy the property that one eigenvalue is zero and the rest are negative. In all cases, the eigenvalue behavior is similar, that is, the eigenvalues decrease as the values of v and u increase. Therefore, these matrices are suitable as connectivity matrices for studying the effects of negative couplings. Moreover, this behavior of the eigenvalues being monotonically decreasing with respect to u and v can be interpreted as allowing control over the coupling weights between nodes by adjusting these parameters. Finally, given this predictable behavior, one can select or fix specific values for u and v to investigate the resulting network dynamics.
2.2. Cases n = 2 and n = 3
We now consider the cases of Laplacian matrices of size and , assuming that D is symmetric, with off-diagonal elements given by and diagonal elements defined by , so that each row sums to zero. This construction guarantees that is an eigenvector associated with the zero eigenvalue, which reflects the common phase invariance in consensus or diffusion systems.
Case
n = 2
For
, the Laplacian matrix has the general form:
where
and
is the sign of the coupling. The eigenvalues are
.; now if
(positive coupling), then
: therefore the matrix is negative semidefinite, and the system converges to equilibrium (stable). But if
(negative coupling), then
the matrix has a positive eigenvalue, therefore it is not negative semidefinite, and the system is unstable.
This result shows that, in two-node networks, negative coupling does not induce stability, even though the matrix retains the zero-sum row property. Stability critically depends on the sign of the interaction; only positive coupling leads to stable dynamics.
Case
n = 3
For , we consider three binary interactions with positive intensities , and assign independent signs to each element outside the diagonal: , , , with . The diagonal elements are determined by balance . This construction generates different matrices.
Each of these matrices has at least one zero eigenvalue (associated with the vector ), as a consequence of the row sum being zero. For the system to be negative semidefinite (and therefore stable in the subspace orthogonal to ), all other eigenvalues must be non-positive.
A necessary criterion (although not sufficient in dimension 3 to guarantee negative semidefiniteness without further analysis) is that the leading minors alternate in sign or, at least, that the first two leading minors satisfy , , with at least one being strict, which suggests a spectral structure dominated by negative signs.
From the eight cases, only one induces at least one positive eigenvalue and therefore induces instability. In the remaining seven cases, the matrix exhibits alternating signs in the principal minors or a spectral structure compatible with negative semidefiniteness under certain conditions on .
The only exception is the case where
, that is, when all elements outside the diagonal are negative. In this case
Both minors are strictly positive, which implies that the matrix is not negative semidefinite. In fact, the spectrum includes at least one positive eigenvalue, which leads to dynamic instability.
This result is interesting while in the case negative coupling already breaks stability, in most configurations with mixed signs still allow stable or semi-stable structures, except when all interactions are negative. Therefore, for , only positive coupling induces stability; and for , there are 8 possible configurations of signs, of which 7 allow a spectral structure compatible with stability (negative semidefinite or with alternating minors), while the only configuration with all negative interactions does not satisfy being negative semidefinite and generates instability.
This suggests that, in coupling networks, the mere presence of negative interactions does not imply instability, as long as they are not dominant or consistent in sign. Stability is robust against mixtures of couplings, but is critically lost when all links are negative, which can be interpreted as a global repulsion that prevents the cohesion of the system.
In the next section, we present an application of these connectivity matrices in the synchronization of a network of chaotic systems and a Kuramoto model network.