Community Detection Problem Based on Polarization Measures: An Application to Twitter: The COVID-19 Case in Spain

: In this paper, we address one of the most important topics in the field of Social Networks Analysis: the community detection problem with additional information. That additional information is modeled by a fuzzy measure that represents the risk of polarization. Particularly, we are interested in dealing with the problem of taking into account the polarization of nodes in the community detection problem. Adding this type of information to the community detection problem makes it more realistic, as a community is more likely to be defined if the corresponding elements are willing to maintain a peaceful dialogue. The polarization capacity is modeled by a fuzzy measure based on the JDJ pol measure of polarization related to two poles. We also present an efficient algorithm for finding groups whose elements are no polarized. Hereafter, we work in a real case. It is a network obtained from Twitter, concerning the political position against the Spanish government taken by several influential users. We analyze how the partitions obtained change when some additional information related to how polarized that society is, is added to the problem.


Introduction
The field of Social Networks Analysis (SNA) encompasses a wide range of processes devoted to the investigation of social structures modeled by complex networks or graphs.These are models to show schemes of relations between the entities of a complex system, be it in technological applications, nature, or society, so that the elements of the systems are described as vertices or nodes, and their interactions as links or edges.Particularly, online social networks are usually represented by a graph whose nodes are people and whose edges show relations of different nature: social, friendship, common interests, familiarities, etc.Thousands of millions of data are constantly generated, so the importance of the SNA has grown more and more in the recent decades, attracting the interests of many researchers from different areas.Generally, three analysis levels can be distinguished in SNA processes: the first, related to individuals; the next, related to the structures and relationships established by the graph structure; and the last, related to the analysis of interactions between previous levels.
One of the features shown by complex networks is their internal group structure, a property which is far from being trivial.Trying to find these structures has become a highly relevant study topic in the SNA field: the well-known community detection problem.This problem has evolved into an essential one, having many different applications in several areas such as biology, sociology, Big Data, or pattern recognition [1][2][3][4].From the knowledge of the community structure of a complex network, several non-trivial internal features or organizations can be reached.Furthermore, it facilitates a better understanding

Community Detection Problem
One of the main applications of graphs is related to the community detection problem.Many complex networks usually have an intern modular structure so that the nodes are organized into modules with dense internal connections, scarcely interconnected externally.The goal of community detection problem is to find these hidden structures, i.e., to establish a good partition of the set of nodes.
Some authors understand the community detection problem as an optimization problem [28].The modularity Q is one of the most used measures as objective function to be optimized.This measure, whose value is determined by the topology of the network, is used to quantify the goodness of a partition.It was first defined by Newman and Girvan [12] and it is usually denoted by Q.
Many approaches have been proposed in the last decades to face the community detection problem [7][8][9]28].It is worth highlighting the Louvain algorithm [10], one of the most popular methods in this field, proposed by Blondel et al. in 2008.This algorithm performs very well, particularly with large networks, for which good quality non-hierarchical partitions are detected in a very little computing time.It is an iterative multi-phase method, based on modularity optimization and local moving [11], for which the variation of modularity, ∆Q i (j) defined in [10], is a key element.This vari-of the dynamic processes which take place in the network and the inference of some properties or interactions between the elements.
Therefore, the main goal of applying community detection algorithms to online social networks is to group individuals-represented by nodes-into communities, with the intention of knowing the internal structure of a given society.In this light, community detection and social polarization are closely related.In broader terms, polarization can be understood as the split of a given population into two opposite groups, both with significant and similar size.Polarization measures [5,6] provide a single value which shows all these characteristics, taking into consideration some knowledge about the similarity between the individuals, the clusters in their population, etc.Thus, the structure of a given set of individuals impacts the polarization values shown by a given measure, as well as the presence of polarization-or its degree-determines the topological structure of a network.
Because of the growing importance of the community detection problem, an extensive range of methods have been proposed to solve it [7][8][9], among which it is worth highlighting the Louvain [10] algorithm.It is a fast multi-phase method based on local moving and modularity optimization [11,12], which provides good quality non-hierarchical partitions of the set of nodes, without a priori knowledge of the number of communities.Almost all the methods found in the literature have a point in common: the search of groups is based on the structural or topological characteristics of the graph [13].Particularly, the Louvain algorithm focuses on the edges between the nodes.In this vein, the only information considered for the definition of groups is the knowledge represented by the graph, without deeming any additional data.Going a step further, several authors agree on the idea of adding additional information to the graph, be it in a Game Theory context [14,15], by considering fuzzy sets [16] or fuzzy graphs [17].On our part, we consider the inclusion of some knowledge about the polarization of the elements of a graph when grouping them.We agree on the importance of having groups whose elements are willing to peaceful dialogue, so that they are not prone to conflict.
Let us illustrate this idea with a basic example.Let the graph or network be G = (V, E), consisting of a set V with |V| = 8 nodes by the edges of the set E as it is shown in Figure 1.Every community detection algorithm based on the graph structure, particularly on modularity optimization [10,12], organizes the elements into two clusters with 4 each one, by separating the two wheels, i.e., P = {{1, 2, 3, 4}, {5, 6, 7, 8}}.However, let us assume some knowledge about political position of the individuals against a government, represented by the vector O = (+, −, −, +, +, +, −, −), so that if O i = +, the individual i is in favor of the government, and the opposite happens when O i = −.It is fair to accept that people who hold a similar political ideology, are less prone to conflict with each other than those who have opposite ideas.On this assumption, a desirable partition could be P a = {{1, 4}, {2, 3}, {5, 6}, {7, 8}}.Concerning this idea of adding some additional information to the community detection problem, and based on methodology proposed by Gutierrez et al. [18][19][20] about the the community detection in graphs based on fuzzy measures, in this study we define ation represents the gain attained if the node i is moved to the community to which j belongs, and it is calculated in each step of the Louvain algorithm until a maximum of modularity is reached.The Louvain algorithm is a key point of the methodology which will be proposed in the following pages, related to the community detection in graphs with additional information.

Polarization
In the last few decades, both the concept of Polarization and its measurement have aroused increasing interest in the literature.Due to the new digital technologies, Web 2.0, and social big data analysis, the study of the social conflict is now more reachable than ever.In broader terms, Polarization can be understood as the split of a given society into two different and opposite groups along an attitudinal axis.The measurement of the Polarization is studied in several disciplines [5,[29][30][31].In this work, we recall the concept of Polarization based on fuzzy sets developed in [6].Gue-a new method with the purpose of adding extra-information related to polarization to the community detection problem in graphs.That additional information is based on the values given by the polarization measure developed by Guevara et al. [6].Our goal is to build a model consisting of a network in combination with a polarization fuzzy measure whose structure fixes properly the reality.It is the polarization extended fuzzy graph, which takes both the attitude of the people and structure characteristics of the social network into consideration.On the basis of this model, we define a community detection method, which, by having a graph and knowing the membership degree of every individual to two poles, provides realistic partitions of reality.The choice about several aggregation operators plays an essential role in this method, as it will be shown in the following pages.
The remainder of the paper is organized as follows.In Section 2, we set the basis of the paper, by introducing several concepts related to Graph Theory, fuzzy measures study, and Polarization tools.Then, in Section 1 we work in the definition of a new fuzzy measure based on a Polarization measure.In combination with a graph, this fuzzy measure sets the definition of a new tool: the polarization extended fuzzy graph.In parallel, we define the non-polarization fuzzy measure, to represent the capacity of a set of elements to peacefully dialogue.From this non-polarization fuzzy measure and a crisp graph, we define the non-polarization extended fuzzy graph, for which we suggest a particular application in Section 3, related to searching partitions on it.We show the performance of this new methodology in a real case, working in the detection of groups in a polarization extended fuzzy graph whose origin is Twitter.The experiment design and the methodology can be found in Section 4. We finish this paper in Sections 5 and 6, showing some discussion and conclusions about the work done.

Preliminaries
In this section, we introduce several concepts on which this paper is based.We divide it into two main parts: one is related to networks and graphs as well as the community detection problem, and the other is related to Polarization background.

Graphs, Fuzzy Graphs, and Extended Fuzzy Graphs
Let us consider the crisp graph G = (V, E), whose adjacency matrix is A, which represents the direct connections between the nodes.Beyond the classical concept of crisp graph, Rosenfeld introduced the fuzzy graphs [21] based on the fuzzy relations among the individuals [22].This tool, very useful to model situations in which there is some vagueness or uncertainty about the representation of the knowledge, has been widely used in many fields [23,24].Nevertheless, from a mathematical point of view, there are some situations in which fuzzy graphs may be understood as a kind of weighted graphs [25].An amplified vision of this model was introduced in [18] by defining the extended fuzzy graph, a concept based on fuzzy measures.As it is pointed in [26], fuzzy/capacity measures are fundamental in modeling dependencies among the inputs, and constitute a natural tool for modeling in multiple criteria decision analysis, aggregation, group decision-making, or game theory.Definition 1 (Fuzzy Measure [27]).Let V denote a non empty set.A fuzzy measure is a set function µ : 2 V −→ [0, 1] for which the following holds.
Then, with the combination of the ability of the graph to model connections between elements, and the ability of the fuzzy measures to handle the capacity related to any set of elements, it was defined the extended fuzzy graph.This tool is a graph together with a fuzzy measure defined over the set of nodes.The incorporation of a fuzzy measure goes vara et al. introduced a Polarization measure based on the fuzzy set approach, with which it is possible to avoid the duality Yes/No.Due to the fuzzy sets nature, this measure can deal with numeric, ordinal, or linguistic variables as well.The main argumentation of that work is based on the assumption that "reality is not black and white".When considering the classical Polarization measures found in the literature, each individual is forced to belong to a specific position along the Polarization axis [5].
In [6], Aggregation Operators (AO) [22] are used to aggregate the information.AO were originally defined to aggregate the resulting values of the membership functions of a fuzzy set.Particularly, overlap functions [32] are used in this measure to show the degree z of the intersection of both classes with respect to the object c.On the opposite, grouping functions [33] are used to get the degree z up to which the combination of these classes is supported.Let us detail the characterization of the JDJ pol measure.
We consider the finite set V and the one-dimensional variable X (ordinal or numeric).We assume that X has two extreme and opposite values or poles: X A and X B .Then, regarding the value of each element of V on X, we can measure their membership degree to each of these poles X A and X B .
These membership degrees are represented by the membership functions η X A , η X B : V −→ [0, 1], so that for ev-far from the previous notion of fuzzy graphs, which are limited to the consideration of pairs of elements.In this vein, by means of a fuzzy measure defined over the set of nodes, we can represent situations in which more than two nodes are implied, independent of the way they are connected through the graph.It is obvious that the representation ability of the extended fuzzy graph goes fFar from that of the existing tools, so that much more complex situations can be addressed, with a proper modeling of reality.
Definition 2 (Extended fuzzy graph [18]).Let G = (V, E) denote a graph, and let µ : 2 V −→ [0, 1] denote a fuzzy measure defined over the set of nodes V.An extended fuzzy graph is a triplet G = (V, E, µ), also called crisp graph with fuzzy measure µ.
In the following example, we show how it is possible to represent complex situations with several information sources by means of an extended fuzzy graph.
Example 1.Let us consider the graph G = (V, E) with 4 nodes (Figure 2).We assume some knowledge about the political position of the individuals against a government, represented by the vector O = (+, −, +, −), so that if O i = '+ ′ , the individual i is in favour of the government, and the opposite happens if O i = '− ′ .These are strong political opinions, so it is not easy for individuals with opposite ideas to peaceful dialogue.However, when two individuals with the same idea are together, they can discuss peacefully at great length.Let the fuzzy measure µ : 2 V → [0, 1] represent somehow the capacity of each feasible group of elements to discuss depending on their ideology.With the extended fuzzy graph G = (V, E, µ) we represent the connections between the individuals as well as their ability to peaceful dialogue regarding their political ideas.ery i ∈ V, η X A (i) and η X B (i) represent the membership degree of the element i to the extreme pole X A and to the extreme pole X B , respectively.
In this scenario, Polarization exists when almost half the population is placed by the extreme position X A , and the other half is placed by the extreme position X B .In Figure 3, we show an illustrative example of two membership degree functions η X A and η X B .In this context, in [6] the JDJ pol polarization measure was defined as the expected risk of polarization of a given population.In this vein, JDJ pol measures the risk of polarization for each pair of individuals {i, j} of a finite set V. The obtained value is given by the summation of all those comparisons between all pairs and its aggregation.This value depends on the following.

•
The closeness of the element i to the pole X A and the closeness of the node j to the pole X B , represented by η X A (i) and η X B (j), respectively.

•
The closeness of the element j to the pole X A and the closeness of the node i to the pole X B , represented by η X A (j) and η X B (i), respectively.
Let us provide a mathematical definition of the JDJ pol measure.Definition 3 (JDJ pol Polarization measure [6]).Let V denote a finite set, and let η X A and η X B denote the membership functions of the elements of V to the extreme poles X A and X B .Let φ : [0, 1] 2 → [0, 1] denote a grouping operator and ϕ : [0, 1] 2 → [0, 1] denote an overlapping operator.Then, JDJ pol measure is defined as Remark 1.The membership degrees defined by the membership function are always non-negative, particularly those degrees concerning η X A and η X B .Then, because of the properties of the grouping and overlapping operators, the measure JDJ pol is monotone and nonnegative.
The performance of JDJ pol shows the highest values of Polarization in those cases in which the 50% of the elements are located in one extreme value of the attitudi-nal axis and the other 50% of the elements are located in the opposite extreme value.This situation is explained in detail in [6].

Networks with Additional Information: The Polarization Extended Fuzzy Graph
On the basis of the Polarization measure introduced in defined in [6], in this section we define a new fuzzy measure.We work in the idea of adding some additional information to a given graph.To carry on with it, we assume the existence of a crisp graph G = (V, E) and some knowledge about the attitude of the elements of V concerning any particular issue.First, we define a fuzzy measure emanated from the Polarization measure relative to this attitudinal knowledge.This fuzzy measure reveals the fuzzy relations existing between all the pairs of elements of V emanated from the measure JDJ pol [6].
Definition 4 (Polarization fuzzy measure µ P − ).Given a unidimensional variable, let V denote a set of n individuals, about which we know the membership degree to the extreme poles of that variable, X A and X B , represented by the membership functions η X A and η X B , respectively.Let the functions ϕ : [0, 1] 2 → [0, 1] and φ : [0, 1] 2 → [0, 1] denote a grouping operator [33] and an overlapping operator [32], respectively.Let S denote a subset of V, and let according to the Equation ( 1).We define the polarization fuzzy measure µ P − as Proposition 1.The function µ P − characterized in the Definition 4 is a fuzzy measure.
Proof.To demonstrate this affirmation, we will show that the properties enunciated in the Definition 1 concerning fuzzy measures hold for µ P − .
. By definition, JDJ pol is a monotonic measure, so this property trivially holds.
Remark 2. Note that previous definition of the polarization fuzzy measure µ P − could be re-formulated as a summation concerning the different pairs of elements, i.e., where ) Because of the properties of µ P − , P − is symmetric, nonnegative, normalized, and its main diagonal is null.
Because of the interpretation of the measure JDJ pol , P − ij represents the risk of conflict concerning the elements i and j, so that µ P − represents the capacity of the el-ements to argue, to trigger conflict and arguments.Therefore, it is a recommended model to properly represent the discrepancy or distance between the individuals.Example 3. In this example, we show the calculation of µ P − for a given set V with 4 elements.We consider the membership functions η X A and η X B defined in Table 1.We consider the functions φ = max and ϕ = product.Results are showed in Table 2.
0.25 0 0.25 0.25 0 0.25 0.5 0.5 0.5 0.5 1 Remark 3. We can define a measure obtained from the negation of the risk of polarization between two elements.That measure will have an opposite meaning than the capacity obtained from the JDJ pol .Let N : [0, 1] → [0, 1] denote a negation aggregator, and let us define Then, we define the matrix P + as Definition 5 (Non-polarization fuzzy measure µ P + ).Given a finite set V, a grouping function φ, a conjunction function ϕ, a negation operator N, and two membership functions η X A , η X B : V → [0, 1], let P + be the matrix characterized in Equation (6).Then, from matrix P + , we can define a measure which represents the capacity of the elements of a set to peacefully dialogue without risk of Polarization: Remark 4. Trivially, µ P + is a fuzzy measure.
Example 4. We recall Example 3 in order to show the calculation of µ P + for a given set V with 4 elements.We consider the membership functions η X A and η X B defined in Table 3.We consider the functions φ = max, ϕ = product, and N(x) = 1 − x. Results are showed in Table 4.
Table 3. Membership degree of each element of V to the poles X A and X B . Element Note that JDJ(V) = 2 is the amount of peaceful dialogues between the 4 elements.These dialogues come from the groups {1, 3} and {2, 4}.
0.25 0 0.25 0.25 0 0.25 0.5 0.5 0.5 0.5 1 µ P + (S) 0 0.5 0 0 0.5 0 0.5 0.5 0.5 0.5 1 Once we have defined two opposite models to represent the capacity of a set of elements to argue/dialogue, we define a new representation model: the polarization extended fuzzy graph.It combines the ability of a crisp graph to represent a set of elements connected to each other, with the representation of the synergies between these elements, regardless theirs connections.Therefore, from a crisp graph, two membership functions, and two aggregation operators, we can define a polarization extended fuzzy graph, a tool which sets light on the modeling of reality.
Definition 6 (Polarization extended fuzzy graph).Let G = (V, E) denote a crisp graph, whose nodes set is V and whose edges set is E. Let η X A and η X B denote the membership functions of the elements of V concerning the extreme poles X A and X B .Let functions φ : denote a grouping and a conjunction operator, respectively.Let µ P − : 2 V → [0, 1] according denote the fuzzy measure characterized in the Equation (2).Then, the triplet G = (V, E, µ P − ) is a polarization extended fuzzy graph.
Note that the representation ability of the polarization extended fuzzy graph goes far from the modeling provided by other tools as for example, a fuzzy graph.Let us show a toy example.
Example 5. We consider the graph G = (V, E) shown in the Figure .Let the membership functions η X A (1), . . ., η X A (8) = (1, 0, 0, 1, 1, 1, 0, 0) and η X B (1), . . ., η X B (8) = (0, 1, 1, 0, 0, 0, 1, 1) define the membership degree of each element of V to the poles X A and X B , respectively.We consider φ = max and ϕ = product.In Figure 4, we show a representation of the polarization extended fuzzy graph G = (V, E, µ P − ).It may seem that the polarization extended fuzzy graph has a weak point related to the high complexity concerning the definition of the corresponding fuzzy measure µ P − .Nevertheless, we will show some desirable properties of it, which facilitate the handling of G.The most important is about the additivity, as it is shown below.
Proof.We base this demonstration on an asseveration found in [34], where Grabisch demonstrated that a fuzzy measure µ is 2-additive if and only if, for all S ⊆ V, it can be defined as a linear combination µ(S) = ∑ n i=1 a i x i + ∑ {i,j}⊂S a ij x i x j , where x i = 1 if i ∈ S, and x i = 0 otherwise.
For every i ∈ V, we define a i = 0, and for every i, j ∈ V such that i ̸ = j, we define a ij = P − ij .Then, according to the Equation ( 2), Proposition 3. µ P − is closed for convex linear combinations: Proof.According to Equation ( 2), and assuming that x i = 1 if i ∈ S, and x i = 0 otherwise, we have As a particular case of the Proposition 3, it holds that µ P is fixed for the mean as follows: Note that all the points and properties enunciated with respect to µ P− also apply to µ P + .Then, µ P + is a 2-additive fuzzy measure.Particularly, we emphasize in the definition of the non-polarization extended fuzzy graph G = (V, E, µ P + ), concerning a crisp graph and a non-polarization fuzzy measure.
Definition 7 (Non-polarization extended fuzzy graph).Let G = (V, E) denote a crisp graph, whose nodes set is V and whose edges set is E. Given a unidimensional variable X with two extreme poles X A and X B , let µ P + the non-polarization fuzzy measure characterized in the Definition 5.Then, the triplet G = (V, E, µ P + ) is a non-polarization extended fuzzy graph.Example 6.We recall Example 5, but in this case we focus on the measure µ P + .Therefore, we have the graph G = (V, E) and membership functions η X A (1), . . ., η X A (8) = (1, 0, 0, 1, 1, 1, 0, 0) and η X B (1), . . ., η X B (8) = (0, 1, 1, 0, 0, 0, 1, 1).We consider φ = max and ϕ = product, and N(x) = 1 − x.Then, the non-polarization extended fuzzy graph G = (V, E, µ P + ) is shown in Figure 5, in which we show structure of the crisp graph and the matrix P + concerning µ P + .Note that the measure JDJ pol quantifies the distance or discrepancy between all pairs of elements i, j of a given set of individuals V, i.e., the risk of polarization.Therefore, its negation JDJ pol can be understood as the minimum risk of polarization for a given population or community.On this assumption, if we consider the non-polarization fuzzy measure µ P+ , grouping nodes according to this criterion allows us to build communities with minimum risk of conflict.These communities detected in the non-polarization extended fuzzy graph G = (V, E, µ P + ) present a structure that better fixes reality than those communities built only by the relations between nodes.
As the aim of this paper is related to community detection problems, hereafter we will focus on the non-polarization fuzzy measure µ P + and the corresponding matrix P + .Both tools allow us to manage the synergies between the nodes.To simplify the notation, we consider µ P = µ P + and P = P + .

A Parametric Approach to Community Detection Problem Based on Polarization Measures and Weighted Mean
Many complex networks show a modular structure so that the individuals are organized into modules with dense internal connections.Numerous examples can be found: in the field of social networks, groups of related users according to their interests or background; in any citation network, groups of connected papers concerning one particular issue; in a recommendation network, set of similar services or offers; and in metabolic networks, connected biochemical pathways [9,35,36].Due to the increasingly demand for all these real-life applications among many others, having a consistent community structure helps to understand the main characteristics, functions, and topology of these systems.So that, a good understanding of the community structure hidden in a complex network may be helpful for better analysis and exploitation of the data in an effective way [37,38].
Complex networks are usually represented by graphs.One of their most popular applications is devoted to the resolution of community detection problems, whose main goal is to find a good partition of a given network.A partition of a graph G = (V, E) is a decomposition of the set of nodes V into subgroups known as communities or clusters whose composition depends on the similarity between the objects considered, i.e., a division of the set of nodes into groups that are densely intra-connected, whereas sparsely connected with the rest of the graph [13,39,40].
Classical algorithms proposed in this field are based on topological information and on the structure of the network considered.Nevertheless, it is undeniable that in the process of modeling the reality by means of a network for subsequent groups search, there is lot of knowledge and information that are not considered in the grouping process.Several authors agree on the importance of adding some additional information to the structure represented by a graph to enrich the communities detected [15,[41][42][43].In this work, the problem addressed by Gutiérrez et al. [18][19][20][44][45][46][47] about the detection of communities in extended fuzzy graphs is particularly interesting.They proposed a methodology to analyze independently the structural information of the graph and the knowledge represented by the fuzzy measure when grouping the nodes.
We approach the community detection problem based on fuzzy measures including this information about the relations among the individuals emanating from that knowledge about the respective positions in any attitudinal axis.These relations will be considered in terms of Polarization measures built from the JDJ pol measure.Then, the base of the problem here addressed is a non-polarization extended fuzzy graph G = (G = (V, E), µ P ).Note the increment of cohesiveness procured in the groups by considering additional information independent of the topology.Note that we consider the non-polarization fuzzy measure µ P = µ P + instead of the polarization fuzzy measure µ P − in order to fix an scenario in which all the components of G, A and µ P , have the same somewhat "positive" nature.
To face this problem, we work inspired by the idea developed in the Additional Louvain algorithm (see in [19]), based on the Louvain algorithm [10].The key point is to distinguish two different roles within the input parameters: one of them, to establish the neighbor relations, and the other, to calculate the variation of the modularity.The first role will be played by the adjacency matrix of the graph, A, so that only those nodes that are connected in G can be in the same group.On the other hand, we suggest to consider a combination of the two components of the non-polarization extended fuzzy graph G as basis to calculate the variation of modularity, in order to incorporate the additional information.Then, having a crisp graph G, the two membership functions η X A and η X B , the operators φ (grouping), and ϕ (overlapping) and considering the negation function N, or what is the same, a non-polarization extended fuzzy graph G = (V, E, µ P ), we propose a new methodology that is summarized as follows.

1.
Obtain the non-polarization fuzzy measure µ P related to the set V from the parameters η X A , η X B , φ, ϕ and N, according to Equation (7).

3.
Define the matrix M = θ(A, F), where θ : Π(n) 2 → Π(n) is a matrix aggregator used to combine two matrices into a single one.

4.
Apply the Louvain algorithm by distinguishing the role of the matrices A and M: A is used to find the neighbor relations, M is used to calculate the variation of modularity.
Remark 6.In this proposal, we suggest the use of a matrix aggregator θ.Nevertheless, any other operator could be applied instead.
The definition of the matrix F, as an aggregation of the non-polarization fuzzy measure µ P , should be closely related to the problem addressed.We suggest a particular characterization of it, based on the calculation of the weighted graph associated with µ P .This matrix is a highly recommended tool for fuzzy measures manipulation and visualization, which summarizes the knowledge about the capacity of the elements into n 2 data set.The definition of this graph is based on the Shapley value [48], particularly in its characterization related to fuzzy measures [49].
Definition 8 (Weighted graph associated with a fuzzy measure G µ [18,19]).Let µ : 2 V → [0, 1] denote a fuzzy measure defined over the finite set V, and let ξ : [−1, 1] 2 → [0, 1] denote a bivariate aggregation operator.We consider Sh i (µ), the Shapley value of the individual i ∈ V in coalition with all the elements of V regarding their relation in µ; analogously, Sh j i (µ) denotes the Shapley value of the individual i in coalition with all the elements of V\{j}, regarding µ.Then, the weighted graph associated with the fuzzy measure µ, denoted by G µ , is that whose adjacency is represented by the matrix F, where In our specific proposal of the method to find communities in a non-polarization extended fuzzy graph, we suggest summarizing the non-polarization fuzzy measure µ P into the matrix F, with adjacency of its associated weighted graph.To formally establish this method, let us define it as an algorithm, named Polarization Louvain, whose pseudocode can be found in Algorithm 1.

24:
P o i ← P(j * ); The key point to approach a clustering process in a non-polarization extended fuzzy graph G = (V, E, µ P ) is the calculation of the weighted graph associated with µ P .The calculation of the Shapley value on which it is based is a process that usually reaches exponential complexity.Nevertheless, we will show that this problem does not apply when considering µ P , for which we have demonstrated in Proposition 2 that it is a 2-additive fuzzy measure.Proposition 4. Let µ P denote the non-polarization fuzzy measure related to set V obtained from the membership functions η X A and η X B , the aggregation operators φ and ϕ, and the negation operator N, according to Definition 5, so that P is the matrix obtained from these parameters according to Equation (6).The following holds for µ P . 1.
Proof.We prove the point 1, so that the demonstration of 2 is analogous.
It is based on an alternative characterization of the Shapley value [50,51] in which, ∀i ∈ V, the corresponding Shapley index can be calculated as the average of the marginal contributions in all the permutations of the original set V, i.e., where pred(i) denotes the set of predecessors of i in the order o and π(n) denotes the set of all the possible permutations of a set with n elements.According to Equation ( 7 being x j = 1 if j ∈ pred(i), and x j = 0 otherwise .
So that, For a half of the orders o ∈ π(n), it is true that k ∈ pred(i), so, for a half of the values of the previous summation, x k = 1.Therefore, By definition, P is symmetric, and its main diagonal is null.Therefore, P ik = P ki and P ii = 0.Then, As a consequence of the Proposition 4, the following result holds for µ P .
Proposition 5. Let µ P denote the non-polarization fuzzy measure related to set V obtained from the membership functions η X A and η X B , the aggregation operators φ and ϕ, and the negation operator N, according to Definition 5, so that P is the matrix obtained from these parameters according to Equation (6).Let i, j ∈ V denote two individuals.Then, the following applies.
1. Sh i (µ P ) − Sh j i (µ P ) = P ij 2. Sh j (µ P ) − Sh i j (µ P ) = P ji Proof.We prove the point 1, so that the demonstration of 2 is analogous.
As it is demonstrated in the Proposition 4, At this point, it is trivial to represent the closeness between different pairs of elements according to their attitude concerning a particular issue.Then, as µ P is the corresponding non-polarization fuzzy measure based on the Polarization measure JDJ pol , we assume that the closeness between two individuals concerning its attitude about one issue can be represented by the weighted graph associated with µ P , i.e., with the corresponding adjacency matrix of G µ P , calculated as Note that because of P's symmetry, if the chosen aggregation operator ϕ is of the type max, min, average among others, then F ij = P ij , ∀i, j ∈ V.
So far, we have summarized all the knowledge modeled by the non-polarization extended fuzzy graph G = (V, E, µ P ) into two independent matrices, A and F. This process/tools could be applied in many fields, as, for example, problems about centrality, link prediction or propagation.
It is crucial to be clear about the interpretation of the matrices A and F (or P in any case).On the one hand, A represents the direct connections between the elements of V; it is well accepted that nodes tightly-knit connected should be connected, so it can be seen that the connections shown in A are "positive".On the other hand, we have already mentioned that, because of the characterization of µ P (and thus of P/F), it is related to the synergies or closeness between the elements.Then, we can conclude that both matrices A and F have "positive" meanings, so that nodes for which both matrices (or even one of them if it is fair enough) define high values, should be together.
Let us illustrate the performance of the Polarization Louvain method with a toy example.In this case, we combine the matrices A and F by means of a linear combination (θ(A, F) = γA + (1 − γ)F).In our opinion, it is an smart way to assign a weight or importance to each component of the G.Note that, when γ = 1, the additional information is not considered.In this case, both the search of neighbor relations and the modularity variation are calculated over the matrix A, so that the Polarization Louvain algorithm is exactly the same than the Louvain algorithm.

Example 7.
Let us consider the graph G = (V, E) whose adjacency matrix is A, and let us assume some knowledge about the position of the elements of V in any attitudinal axis modeled, in the sense that we know the membership degree of all the individual in V to the poles X A and X B , represented by the membership functions η X A and η X B , respectively.These values are showed in Table 5.From this knowledge, and considering the operators φ = max and ϕ = prod and N(x) = 1 − x, we define the fuzzy measure µ P , and therefore the matrix P (Equation (7)).Due to the properties of P, we have that F = P, so the characterization of µ P is straightforward.At this point, we have the non-polarization extended fuzzy graph G = (V, E, µ P ), so that, being γ ∈ [0, 1] a balancing factor, and considering the aggregation function θ(A, F) = γA + (1 − γ)F = γA + (1 − γ)P, we apply the Polarization Louvain algorithm, being A and P the matrices showed in Figure 6.In Figure 7, we show the partitions obtained for several values of γ.Note how the way in which the nodes are organized changes depending on the importance assigned to the information represented by P (i.e., F) about the closeness between the nodes.
0.000 0.336 0.341 0.561 0.978 0.910 0.219 0.336 0.000 0.892 0.622 0.252 0.329 0.872 0.341 0.892 0.000 0.625 0.257 0.333 0.912 0.561 0.622 0.625 0.000 0.506 0.556 0.556 0.978 0.252 0.257 0.506 0.000 0.899 0.121 0.910 0.329 0.333 0.556 0.899 0.000 0.211 0.219 0.872 0.912 0.556 0.121 0.211 0.000   It is well known by popular knowledge that Twitter is one of the trendiest online social networks, where millions of users debate about any social or political topic, among many others.For this research, we have used the retweet (RT) network.A RT is a post derived from the action of any user to replicate a given tweet or message of another user to spread that content with his/her followers.In the literature, the RT network has been commonly used as a directed network [52], so that if the original tweet is written by an user i and then j RT it, then there is a connection with directionality, which represents the action of each user.Nevertheless, in our case we understand it as an non-directed network in this sense: it is not of our matter to know the directionality of a connection (who posts the tweet and who RT it), but rather to focus on the content.In this vein, once a given user j RT a tweet of i, what is important to us is the intention of j to transmit and spread that content.In broader terms, we can assume that j agrees with the content and spreads the word to make the tweet visible and influential over the people.Our aim is to know the user's political attitude towards the Spanish government measuring their attitude reflected on the tweets.Therefore, no directionality is needed.
All data were downloaded from Twitter, using its API by R-Studio, with the package "rtweet" [53] in 5 rounds along the state of alarm in Spain.
The criteria we used to download the tweets were related to the considerations of those keywords which are mainly composed by the main political parties in Spain as well as their leaders: psoe OR pp OR vox OR ciudadanos OR gobierno OR podemos OR españa OR sanchezcastejon OR vox_es OR pabloiglesias OR pablocasado_ OR santi_abascal OR inesarrimadas OR CiudadanosCs OR populares OR estadodealarma After the downloading phase, we obtained 4.895,747 tweets, about which we know, among other points, who posted it and who retweeted it.Then, manual encoding was applied in a sample of those tweets to fix the points: (1) To detect and filter all those tweets included on our database which do not correspond to our goals (Feature: TOPIC).
The manual encoding was applied to a random sample of 1500 tweets for each round mentioned above.To carry on with it, we analyzed the subject matter of the tweet.As we are considering extreme positions, from our personal knowledge about the political position, it is not complicated to decided whether the message of a tweet is in favor of the government, against it, or neutral.Note the importance of encoding by rounds due to the dynamic nature of debates on online social networks, in which words or events can change over time despite being debating about one specific topic.Once the data were encoded, we applied text classification with machine learning algorithms in order to tackle the full content of our database.
According to the work in [54], Linear Support Vector Machines are recognized to be one of the best machine learning algorithms for text classification.So that, after the tokenization phase and the removal of stopwords, we converted our text into a tf-idf matrix.This type of matrices presents all the different words which appeared on the corpus on the columns, and the strings (tweets in our case) on the rows.The simplest dfm matrix is an occurrence matrix with 0 if a given word does not appear on the tweet and 1 if it does.However, tf-idf matrices show values as a result of the product of a term frequency and inverse document frequency for each word of a tweet.So that, as it is a classification problem with the classes detractor (pole X A ) and supporter (pole X B ), the classifier was trained and applied for the feature "TOPIC" and then for the "POSITION".The results obtained with that process of text classification are showed in the Table 6.Note that the final scores recorded for "POSITION" are the two probabilities for being a "detractor" or "supporter" tweet towards the Spanish government.In this case, the "neutral" category is omitted in order to get a variable with two poles, assuming that probabilities close to 0.5 correspond to the "neutral" category.To carry on with this phase, we used the R-package e1071, where all these methods of text classification are implemented [55].
In Table 6, we show an analysis in which the following indices have been considered: PRECISION, RECALL, KAPPA, F-SCORE , and AUC [56,57].Finally, the database derived from the SVM classifier is integrated by 1,208,631 tweets which have been posted or RT by 469,616 different users.To aim for those influencers and verified accounts, we filtered by the following: (a) Tweets with high repercussion on Twitter, considering accounts whose tweets with RT count are placed above the 50 percentile (n ≥ 317).The information about the count of RT is provided by the API.
(b) Verified accounts.This information is provided by the Twitter API by means of a logical variable which indicates if a given tweet has been posted/RT by a verified account or not.
(c) Accounts with high number of followers, considering accounts whose number of followers is placed above the 50 percentile (n ≥21,779).The information about the number of followers is provided by the API.
In this manner, 406 users left, mainly politicians, party accounts, and journalists.Then, to get a closed network of users, we matched those accounts that both write or RT any tweet among those 406 accounts.So that in our final data base, 295 users are considered, from whose posts, 657 interactions are derived.Note that these interactions may concern users who are not among the 295 considered, but who have RT some of theirs posts; so that we have a total amount of 454 different users and 657 interactions.Each user will be represented by a node, and each interaction by a non-directed and non-weighted edge.From this information, we build a network G = (V, E), so that the each of these 454 accounts is represented by a node of the set V, and the links represents the edges of E. Let us remark that we take into account if it comes the case in which two users interact several times (by means of RT of different tweets), i.e., we work with a weighted graph, so that weight w ij of the corresponding edge represents how many time have interacted the users i and j.
Note that the objects to be classified were not users but tweets, so, for each user, we computed the average score for his/her tweets of being "detractors" and "supporters" (not only considering the original posts, but also the RT).At this end, we finally got, for the 295 users, two specific values of probability for being a "detractor" and for being a "supporter" toward the Spanish government, provided by the SMV method.These distances to the support vector machines for each class of the SMV will be used as membership degree values for each user to compute the JDJ pol Polarization measure, which sets the basis of the non-polarization measure µ P (Definition 5), which is part of the non-polarization extended fuzzy graph G = (V, E, µ P ) over which we apply the community detection problem.
For a better understanding of the results, it is important to provide a proper visualization of the network, which comprises a complex process [58].Having a proper organization and a good representation of the network itself is fundamental for a better understanding and exploitation of the inherent data.To accomplish that, we have used the R package "visNetwork" [59].

Results
In this section, we show the computational results obtained when applying the Polarization Louvain algorithm to the data set obtained from Twitter as explained in Section 4.1.
To carry on with it, we build a graph from that obtained data set and a fuzzy measure which represents the capacity of the elements to trigger conflict.Originally, this graph had 454 nodes and 657 weighted edges (the list of the interactions between users from which we define the set of edges can be found in GitHub (https://github.com/inmaggp/Community-Detection-Problem-Based-on-Polarization-Measures.-An-application-to-Twitter-the-COVID-19-)).Nevertheless, for the clustering process, we focus on its weak component, which contains 261 nodes and 484 weighted edges.The obtained network, G = (V, E), with adjacency matrix, A, is showed in Figure 8 (taking into consideration the weight of each edge, the degree of the nodes is represented by their size in the image, so that the bigger nodes will represent the users with the most amount of interactions).Then, considering the membership degrees of each node to the poles X A (being a "detractor" of the Spanish government) and X b (being a "supporter" of the Spanish government), represented by η X A and η X B , respectively, we can calculate the Polarization measure JDJ pol (see Definition 3) from which we define the matrix P, according to the Equation (6).The membership degrees considered can be found in GitHub 1 .It provides us the non-polarization fuzzy measure µ P which is one of the components of G = (V, E, µ P ).Note that the information provided by the non-polarization extended fuzzy graph goes further than that given by a crisp graph.It also includes the knowledge about the position of the nodes of G with respect to an attitudinal axis, an information which cannot be modeled by classical tools.
The measure µ P depends on the selection of a negation operator, N, and two different types of aggregation operators: a grouping function φ and an overlapping operator ϕ.As negation operator, we use N(x) = (1 − x).Concerning the aggregation operators, we use some of the most important operator in this field, having two different scenarios for the aggregation of the membership degrees: (a) ϕ = min and φ = max, and (b) ϕ = product and φ = max.
Because of the characterization of P, and with µ P being a fuzzy measure characterized as in Equation ( 7), P can be seen also as the adjacency matrix of G µ P , F, so we can indistinctly consider both tools.
We apply the Polarization Louvain algorithm to find communities in the non-polarization extended fuzzy graph G = (V, E, µ P ).Note that the obtained communities will be cohesive with the whole knowledge modeled by it, the structure of the graph as well as the additional information modeled by µ P .The notion of what is a community will be closely connected with the aggregation operator θ chosen, as well as with the grouping operator φ and the overlapping operator ϕ.Being able to consider the additional information when finding groups allow us to obtain realistic communities much more cohesive with the situation addressed, than those given by other methods which can not analyzed more information besides the structure of the graph.To combine the two components of G, we work with linear combinations of the matrices A and P assigning them an importance by means of the balancing parameter γ ∈ [0, 1], i.e., we consider the matrix M = θ(A, P) = γA + (1 − γ)P.
The influence of each component of G varies depending on the value of γ.For values of γ close to 1, the structural component gains importance, so the groups contain nodes tightly connected in A. On the opposite, when γ is close to 0, the additional information modeled by µ P turns decisive in the definition of the communities, so, if it is possible regarding the structure of A, the groups contain nodes with low Polarization level, i.e., nodes whose membership degree to each pole is similar.In this case, those users about whom we can assume similar political viewpoint, will be in the same group.
We apply the Polarization Louvain algorithm for the two scenarios of grouping/ overlapping functions previously mentioned, and considering the matrix M = γA + (1 − γ)P, for several values of the importance parameter, γ = 0.5, 0.4, 0.3, 0.2, 0.1, 0. We also compute the Louvain algorithm with matrix A, on whose result, showed in Figure 9, is based our comparison analysis.Note that the performance of the Louvain algorithm matches with the Polarization Louvain algorithm when M = A, (γ = 1).
Here, we show how the organization of the groups keep changing depending on the importance of each component of G in the clustering process.Particularly, for the extreme cases, Louvain (in which there is no additional information) and γ = 0 (in which the additional information gains all the importance), considering the two scenarios previously mentioned about the aggregation operators used.The results are shown in the Figures 10  and 11.In GitHub, we include a file in which we show the obtained partitions for every value of γ considered, as well as the corresponding images.Note how, when only the political viewpoint of the users is considered, the graph is divided into two main communities, so that we can easily differentiate between the detractors and the supporters of the Spanish government.
To measure the goodness of the obtained partitions, we refer to the JDJ pol measure.We agree on that a cohesive group should be composed by connected users with similar viewpoints.In this sense, we can say that a group is as cohesive as low is its corresponding JDJ pol value.
Note that the partitions obtained when consider several values of γ vary in the number of communities.Then, to compare them, we consider the weighted average of the JDJ pol (C i ) value of all its communities.Thus, we calculate the Polarization value of the partition P = {C 1 , . . ., C s } as It is important to put attention on the fact that only the non-isolated communities will be considered to calculate pol(P), i.e., groups with more than one element |C i | > 1; it does not make any sense consider how polarized is one element with respect itself.
In Tables 7 and 8, we show the JDJ pol value of each community in the obtained partitions (only non-isolated communities), as well as the corresponding pol(P).For each partition, we show the vector (JDJ pol (C 1 ), . . ., JDJ pol (C s )), so that the ith component corresponds with JDJ pol (C i ).As it can be seen in previous tables, as well as in Figure 12, the pol(P) value related to those partitions obtained with the Polarization Louvain algorithm is lower than the one related to the partition provided by the Louvain algorithm.Then, we can assert that this method provides more cohesive community structures according to the reality modeled.To illustrate this, in the following figures we show an example of how two pairs of nodes which should belong to the same communities, respectively, are split into four different communities with the Louvain algorithm.On one hand, we have nodes "38" and "115", both left-wing political parties that teamed back in march 2019.On the other hand, we have nodes "76" , a right-wing political party, and "203", a member of this political group.After applying the Polarization Louvain algorithm, those pairs are clustered into the same communities (see Figure 13a,b).Let us note that mentioned images are a zoom over the whole network, so not all the edges incident in these nodes are shown.Although it may seem that some nodes grouped in the same communities are not connected by edges (for example, nodes "76" and "203" in the image Figure 13b) all of them are properly connected in the network.

Discussion
There are several points to be discussed at this end.From a theoretical point of view, it is undeniable that complex models fix the reality better than classical tools.Having several criteria to be considered makes the resolution process of a problem more complex, but it is certainly worth it.
Classically, the methods proposed to find communities in a graph only analyze its structural features.Far from this assumption, in this work we have taken into consideration several aspects inherent to reality, which, with a proper process of modeling and analysis, can be considered as different criteria in the community detection problem.
Then, we distinguish between different types of information.On the one hand, we deem the crisp knowledge which could be easily related to the classical graphs considered in the literature.This type of knowledge is unalterable and objective, in the sense that it exists and no changes could be made about it.It is the case of the direct connections represented by the edges of a graph.Particularly, in the real case here addressed based on the Online Social Network Twitter, we have worked with the retweet (RT) network.It is composed of objective information directly obtained from the social site.On the other hand, we analyze other types of information sources inherent to the people who discuss in Twitter.A wide range of different aspects could be considered, from the factual issues related to objective knowledge about the people as, for example, the distance that separates them or the common followers, to the more subjective points related to ideology or feelings.
In the context of great political instability enhanced by the global COVID-19 crisis, we agree on the importance of analyzing the political position of several people who are highly influential on Twitter.The study of feelings, ideology, and political principles, is always a hard matter in which many inaccurate details have to be taken into account.To deal with the vagueness and vagueness related to the analysis of political attitudes, we work with fuzzy measures, added in the modeling process to the crisp graph.In this vein, we work with the non-polarization extended fuzzy graph G = (V, E, µ P ), where G = (V, E) is the weighted graph which represents the RT network, and µ P is a fuzzy measure which defines relations between the elements of V, depending on their position in a political axis.To define this fuzzy measure, we consider the JDJ pol measure, which quantifies the Polarization of a given society.
Several criteria have to be fixed for the calculation of JDJ pol , as, for example, the aggregation operator ϕ and the grouping function φ.In this paper, we have selected considered some of the most popular functions in this field, specifically, φ = max and ϕ ∈ {min, product}.Note that these operators play an essential role in the value of the JDJ pol measure (and also the negation operator N if we are interested in considering the opposite of JDJ pol ) and thus in the community detection problem here addressed.Therefore, it would be interesting to analyze how the structure of the partitions keeps changing according to the operators considered.
In the same manner, the operator θ involved in the Polarization Louvain algorithm impacts on the community structure detected, in terms of how to aggregate both components of a non-polarization extended fuzzy graph G = (V, E, µ P ) (the structure and the closeness between the nodes).We agree on considering linear combinations of the two matrices involved, in order to assign an "importance" to each of them, by means of a balancing or weighting factor γ ∈ [0, 1].This procedure allows us to examine the changes that occurs in the structure of communities, according to the how much influence on its definition each of these components.Then, considering the aggregation γA + (1 − γ)P, those values of γ which are close to 1 are related to partitions in which the nodes of the same group are densely connected in G, whereas for lower values of γ it is important to maintain together nodes with high values of closeness (without omitting the structure of G).
Regarding Polarization values, the Louvain algorithm shows the highest values of Polarization, as it can be seen in the Tables 7 and 8, as well as in the Figure 12.In this work, we propose a new method for community detection, which in our opinion has strong theoretical and applied connotations.The extra-information provided by the measure of Polarization JDJ pol matches up with community detection algorithms due to their close conceptual relationship.The fact of adding Polarization scores implies taking into account the similarity between individuals along an attitudinal axis.In this vein, having new information closely related to the purposes for which the community detection algorithms are applied, makes the communities more cohesive with a greater homogeneity degree, so that this construction of the communities fixes better the reality.In our case, the aim is to cluster the nodes according to their position towards the Spanish government.

Conclusions
In this paper, we work in the definition of a polarization fuzzy measure obtained from a Polarization measure.It is a model to represent the capacity of a set of elements to argue.Then, we introduce a new tool which combines the capacity represented by that polarization fuzzy measure, with the connections between elements modeled by a graph: the polarization extended fuzzy graph.
In order to handle situations in which the interest is not in the capacity of the elements to argue, but it is in their capacity to peacefully dialogue, we suggest the definition of the non-polarization fuzzy measure.Similarly as it is proposed concerning the polarization fuzzy measure, we introduce the non-polarization extended fuzzy graph, which allows the representation of the capacity to dialogue of a set of elements combined with their connections throughout a graph.
Then, we address the community detection problem in an extended context regarding the existence of several criteria to be taken into account.On the one hand, we consider the representation of the direct connections between the individuals represented by a crisp network G = (V, E).On the other hand, we know the position of all the elements (represented by the nodes) in any attitudinal axis, information not inherent to the structural representation of their connections.
From this extra-information, understood as the membership degree of each element to two extreme poles, the JDJ pol polarization measure is defined, which will be the base of characterization of a non-polarization fuzzy measure µ P .Then, we define the nonpolarization extended fuzzy graph G = (V, E, µ P ), on which we set the basis of the community detection problem based on fuzzy measures.On this assumption, we address a real case obtained from Twitter.
The graphic representation of a network reflects the structure of a given set of nodes according to their interactions and behavior.From this point of view, the sociological phenomenon which drive all these interactions is called homophily [60].According to the concept of homophily, a set of individuals or nodes are grouped and interact with each other according to their similarities.So that the concept of Polarization is emanated from homophily and, more specifically, homogeneity [52], appearing in those scenarios in which a set of nodes or individuals are split into two opposite groups.In this vein, the measurement of Polarization provides the adequate clues for community detection problems.Furthermore, the fuzzy-set theoretical approach provides the appropriate resources in order to tackle this issue from a realistic position.Adding the extra-information provided by JDJ pol has a double benefit: (1) it not only allows increasing the homogeneity degree intra-community, but (2) it also provides essential information in those cases where there are some nodes with a non-clear membership with the classical community detection algorithms.Furthermore, note the importance of the aims and hypothesis of the study which should be the same for both, community detection application, and Polarization measurement.Thus, the synergy between community detection algorithm and other measures will be an optimal solution.As a consequence, not only the integration of a given community is more realistic but also the global topographic structure.
Regarding the construction of the membership degree functions, they can be constructed by different approaches as well as they reflect the proximity of a given individual to the poles.In [6], the authors proposed a triangular membership function where each of the categories used in their example-they apply the measure to a categorical variablehad a given probability of belonging to each pole assuming that the lowest value is one pole and highest is the other.In this case, we use as membership functions the support vector machine classifier outputs, which give us soft information that can be used to know how close each item is to the classes X A and X B .From this soft value we build the membership function of each individual to each pole, obtaining η X A (i) and η X B (i) by which we can know the degree in which a given individual belong to both poles.
To conclude this final section, we would like to mention some points.One of the most difficult problems in fuzzy sets theory is how to build a membership function.In this work,

Figure 1 .
(a) Classical algorithm partition.(b)Extra-information algorithm partition.Toy example: a graph with 8 nodes.

Figure 6 .
Figure 6.Matrices A and P.

4 .
A Real Case: The Impact of the COVID-19 Pandemic in the Organization of the People 4.1.Experiment Design: Sources and Methodology We briefly explain the case of study in the following.The nodes and theirs relations considered in this work have been obtained from the social network Twitter, particularly from some posts recorded along the state of alarm imposed by the central government in Spain (from March 16th, 2020 until June 29th, 2020).All data downloaded relate to the COVID-19 pandemic and the political situation in that country, concerning the management of the sanitary situation by the Spanish government.Each element of that data set represents an influential and verified account.

Figure 9 .
Figure 9. Partition obtained with the Louvain algorithm in the graph G = (V, E).

Figure 13 .
Zoom of the whole network.

Table 2 .
Values of the fuzzy measures µ

Table 4 .
Values of the fuzzy measures µ P − and µ

end if 27: end for 28: end while 29: end Phase 1 30: Phase 2 31
: Aggregate A * from A (nodes of A * are the communities found in Phase 1); 32: Aggregate M * from M (nodes of M * are the communities found in Phase 1); 33: if (A * ̸ = A) then

Table 5 .
Membership degree of each node of V to the poles X A and X B .

Table 6 .
Linear support vector machine (SVM) performance for features "TOPIC" and "POSITION".

Table 7 .
Comparison of the obtained partitions.φ = max and ϕ = min.