Next Article in Journal
Portfolio Selection Problem Using CVaR Risk Measures Equipped with DEA, PSO, and ICA Algorithms
Next Article in Special Issue
TALI: An Update-Distribution-Aware Learned Index for Social Media Data
Previous Article in Journal
DL-Aided Underground Cavity Morphology Recognition Based on 3D GPR Data
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Exhaustive Exploitation of Local Seeding Algorithms for Community Detection in a Unified Manner

1
College of Computer Science and Cyber Security, Chengdu University of Technology, Chengdu 610059, China
2
School of Computer Science and Engineering, University of Electronic Science and Technology of China, Chengdu 611731, China
*
Author to whom correspondence should be addressed.
Mathematics 2022, 10(15), 2807; https://doi.org/10.3390/math10152807
Submission received: 11 July 2022 / Revised: 3 August 2022 / Accepted: 5 August 2022 / Published: 8 August 2022
(This article belongs to the Special Issue Soft Computing for Social Media Data Analytics)

Abstract

:
Community detection is an essential task in network analysis and is challenging due to the rapid growth of network scales. Recently, discovering communities from the local perspective of some specified nodes called seeds, rather than requiring the global information of the entire network, has become an alternative approach to addressing this challenge. Some seeding algorithms have been proposed in the literature for finding seeds, but many of them require an excessive amount of effort because of the global information or intensive computation involved. In our study, we formally summarize a unified framework for local seeding by considering only the local information of each node. In particular, both popular local seeding algorithms and new ones are instantiated from this unified framework by adopting different centrality metrics. We categorize these local seeding algorithms into three classes and compare them experimentally on a number of networks. The experiments demonstrate that the degree-based algorithms usually select the fewest seeds, while the denseness-based algorithms, except the one with node mass as the centrality metric, select the most seeds; using the conductance of the egonet as the centrality metric performs best in discovering communities with good quality; the core-based algorithms perform best overall considering all the evaluation metrics; and among the core-based algorithms, the one with the Jaccard index works best. The experimental results also reveal that all the seeding algorithms perform poorly in large networks, which indicates that discovering communities in large networks is still an open problem that urgently needs to be addressed.

1. Introduction

A community is traditionally recognized as a subset of nodes that are densely connected to each other but sparsely connected to the rest of the network, which is also an important mesostructure in many real networks, including protein networks, social networks, citation networks, and information networks. Therefore, the analysis of the community structure in those networks benefits our understanding of the corresponding systems; for example, analyzing communities in citation networks reveals research developments and frontiers in different disciplines. However, in many cases, the communities in those networks are usually implicit and need to be detected according to the network structure. Therefore, community detection has attracted many researchers, and thousands of community detection methods have appeared in the literature [1,2,3,4,5,6,7,8,9,10,11,12,13] since the GN (Girvan–Newman) was proposed in 2002 [14].  We think of GN as the first algorithm for community detection since it initiated the research of community detection in real networks.
Although community detection has been studied extensively, it is still a challenging task due to the complexity of network structures, especially with the rapid increase in network data. In addition, global information may be inaccessible due to privacy or limited permissions. In this scenario, local community detection has been the focus of many studies; the goal is to discover the community containing the seed from the local perspective of that seed (the seed is also called the center or core). Local community detection is also called seed expansion [15,16], and many local community detection algorithms have been proposed in previous publications [17,18,19,20,21,22,23,24,25,26]. Generally, to search for the global community structure, a set of nodes should first be chosen as seeds, and then each seed is expanded to find the community to which the seed belongs. Finally, the communities obtained from all the seeds compose the global community structure of the entire network. Local community detection has great potential in large-scale networks since it is commonly much easier to handle local information in such networks. However, many local community detection algorithms are influenced by the seed [22,27]. That is, if the seed is a good representative of the community to which it belongs, then the community can be detected well; otherwise, it cannot. This means that local community detection is challenged by seeding, which aims to select good seeds.
A good seed is generally in the core of the community or has a high influence on most members of the community. See Figure 1 for an illustration; nodes 4 and 10 are good seeds for the two communities. It is conventional for the core members of a community to be densely connected. Thus, seeding methods always customize a criterion to determine whether a node is in a densely connected area or has high influence and then design a strategy to select seeds according to the criterion. Following this paradigm, dozens of seeding algorithms have been proposed; see Table 1 for the summary of these seeding algorithms (more details are described in “Related work”). The most popular criterion is node centrality, which is used to evaluate the influence or importance of nodes according to the network structure, e.g., degree centrality is used in [16,21,27,28,29,30,31], eigenvector centrality, betweenness centrality, and PageRank centrality are used in [32,33,34], core dominance is used in [28,35], and influence centrality is used in [36]. Other metrics measuring the denseness of the neighborhood of a node can also be used as the node centrality, e.g., the conductance of the egonet is used in [16,28,37], and the node mass is used in [38,39]. There are several selection strategies. Some methods select the nodes with the best centrality values by considering all the nodes in the network, e.g., [16,28,29] select the top K nodes with the highest degree as seeds under the condition that seeds should not be adjacent to each other. Other methods select nodes according to centrality values by considering only the neighborhood, e.g., [30,31] select nodes with degrees no lower than those of all the neighbors as seeds.
Both the criterion and the selection strategy can be global or local, and therefore, the seeding algorithms can be categorized into two groups, i.e., global algorithms and local algorithms. The global seeding algorithms use the global information of the network to obtain seeds (we assume that as long as one of the criterion and selection strategy requires global information, the corresponding algorithm is global); in contrast, the local algorithms only utilize the local perspective of each node to decide whether it is a seed. Clearly, local seeding algorithms are more efficient and suitable for large-scale networks, but there is no systematic comparison and analysis of them in a unified framework, which is necessary for the development and application of community detection and benefits other studies related to networks, e.g., influence maximization. Therefore, in this paper, a unified framework is summarized from the existing works. Under this unified framework, each node is first evaluated by a local centrality metric, and then nodes with centrality values better than those of the neighbor nodes are chosen as seeds. By adopting different local centrality metrics in the unified framework, the popular local seeding algorithms are included and several new ones are obtained. After that, each seed is expanded by the local community detection algorithm based on a personalized PageRank to obtain communities. Finally, comprehensive experiments are conducted to compare and analyze the local seeding algorithms on real and synthetic networks. On the basis of the experimental results, we summarize some conclusions, which can guide the research on seeding and benefit the application of community detection. The main contributions of this paper are as follows:
(1)
The existing seeding algorithms are summarized and categorized into global and local algorithms according to the criterion and selection strategy.
(2)
A unified local seeding framework is formally summarized, which first measures the local centrality of each node and then selects the nodes with the best centrality in their neighborhoods. From the unified framework, popular local seeding algorithms and new seeding algorithms can be instantiated by adopting different centrality metrics.
(3)
Several new local seeding algorithms are obtained from the unified framework by adopting different local centrality metrics, enriching the research on seeding and other related studies in network science. Moreover, all the obtained local seeding algorithms are categorized into three classes according to the centrality metrics.
(4)
Comprehensive experiments are conducted on a number of networks to provide a comparative analysis of the obtained local seeding algorithms. Based on the experimental results, several suggestive conclusions are obtained: (a) the degree-based algorithms usually select the fewest seeds, while the denseness-based seeding algorithms select the most seeds (except the one that uses node mass centrality); (b) the local seeding algorithm with the conductance of the egonet as the centrality metric performs best in discovering communities of high quality; and (c) in many cases, each algorithm performs differently on different evaluation metrics, but the core-based seeding algorithms perform best overall, and among them, the one with Jaccard index performs best.
The organization of the remaining part of the paper is as follows: Section 2 presents related work about seeding and local community detection algorithms. Section 3 describes the notations and local centrality metrics used in this paper. Section 4 presents the unified framework, the obtained local seeding algorithms and the time complexity analysis of these algorithms. Section 5 presents the local community detection algorithm, the process of obtaining the global community structure by expanding seeds, and the time complexity analysis of this process. The experiments are shown and analyzed in Section 6. Finally, Section 7 concludes our work.

2. Related Work

In this section, we briefly summarize the most related work about seeding methods and local community detection algorithms.

2.1. Seeding

Dozens of algorithms have been proposed to select seeds in the literature. Generally, these seeding algorithms use the following paradigm: (1) customize a criterion to evaluate how good a node is (or a set of nodes are) as a seed (seeds) and (2) design a selection strategy to select seeds according to the criterion. The most popular criterion is node centrality, since a good seed should be important to the connectivity within the community or show strong influence on other members of the community. Some traditional centrality metrics, such as degree, closeness, eigenvectors, betweenness and PageRank, were naturally used as criteria in seeding [16,21,27,28,29,30,31,32,33,34]; moreover, several new centrality metrics, such as the conductance of the egonet [16,28,37], extended degree [40], accumulation degree [22,26,41], core dominance [28,35], core centrality [42], node mass [38,39], and density [43,44,45,46,47,48], were proposed for seeding. It is important to note that the definitions of density centrality vary. Bai et al. defined the density of a node as the number of nodes to which the distance is smaller than a certain threshold, and the distance between a pair of nodes was the reciprocal of the strength of the linkage, which was defined based on the number of routes in specified steps and the node degree [44]. Wang et al. [45] and Jiang et al. [46] defined density in the same way as [44], but the distance between a pair of nodes is the shortest path. Ding et al. applied extended degree as the density to find the center of community in [47]. Deng et al. defined the density as the number of neighbor nodes to which the similarity is larger than a given threshold, and the similarity between two adjacent nodes was evaluated by a composite similarity index based on the shortest path information and the Jaccard index [48]. The core nodes defined in [43] can be also treated as this type of density but using the cosine index over the neighbor sets to evaluate the adjacent nodes’ similarity. In addition, cliques and k-plexes have been used as criteria [15,49], and the nodes in a maximal clique (the size of clique is at least k) or k-plex that do not overlap with other cliques or k-plexes were selected as seeds (see DMC and K-plex in Table 1); the center of each cohesive cluster obtained by graph partitioning using Graclus [50] was also taken as a seed [16] (see Graclus in Table 1). These methods involving the k-plex, k-cliques [51], and cohesive centers are computationally intensive, limiting their application in large-scale networks.
There have been several selection strategies in the literature, which are summarized below:
Selection strategy I: This strategy selects the nodes with the best centrality in its egonet as seeds, i.e., the nodes with a centrality that is no worse than those of all neighbors. Since this strategy only requires comparing the centrality of each node with those of its neighbors, the time complexity of selecting all the seeds by this strategy is O ( | m | ) since for each node, we only need to check the adjacent nodes (m denotes the number of edges in the network, and all the notations used in this paper are denoted in Section 3.1 unless specified otherwise). Examples are given in [16,28,30,31,35].
Selection strategy II: This strategy selects nodes with a centrality larger than a specified value (a parameter) that are not assigned to any community as seeds; this means that the seed selection and seed expansion processes are performed alternately. The time complexity of this strategy is approximately O ( | n | ) if we exclude the cost of seed expansion. This strategy was applied in the community detection algorithm named SCAN (see L-SCAN in Table 1), and the number of similar neighbors was taken as the centrality, which can be treated as the density centrality [43]. Here, the similar neighbors of a node are determined by checking the similarity of each neighbor to that node: if the similarity is larger than a specified value (a parameter), then the neighbor is a similar neighbor; otherwise, it is not.
Selection strategy III: This strategy sorts nodes in descending order of centrality value and then sequentially takes nodes that are not assigned to any community as seeds. The time complexity of this strategy is approximately O ( n log 2 n ) , which is the cost of the sorting, if we exclude the cost of seed expansion. The seeding algorithms in [21,32,35,39,42] use this strategy; these are listed in Table 1.
Selection strategy IV: This strategy first sorts the nodes in descending order of centrality value and selects the first K nodes as seeds (K is a parameter). The time complexity of this strategy is approximately O ( n log 2 n ) ). This strategy was applied in [16,28,29,34,36]. It is noted that for the seeding algorithm named G-SH (where the degree centrality is used), the seeds are further required to be not adjacent to each other. Thus, the neighbors of each selected seed should be marked as unavailable in the selection process, which has a time complexity of O ( K d m a x ) in the worst case. Thus, the time complexity of the strategy in G-SH is approximately O ( n log 2 n ) + K d m a x ) , and we name it as selection strategy IV-a.
Selection strategy V: This strategy is for a case in which several centrality metrics are used. It sorts nodes according to each centrality metric and then selects the nodes in the intersection of the first K nodes from each sort as seeds. The time complexity of this strategy is approximately O ( n c n log 2 n ) , where n c is the number of centrality metrics. The seeding algorithms in [33] apply this strategy.
Selection strategy VI: This strategy sorts nodes in descending order of centrality value and selects the first two nodes as seeds; then, it sequentially selects the remaining nodes in the sort until the difference in centrality between the last node selected and the current node is more than the difference in centrality between the last two nodes selected. The time complexity of this strategy is approximately O ( n log 2 n ) . The seeding algorithm G-EXTD applies this selection strategy [40].
Selection strategy VII: This strategy selects nodes with high density that are far away from (or have a weak relation to) nodes with higher density, originating from the idea of an effective traditional clustering algorithm named clustering based on density peaks (CDP) [52]. Thus, the minimum distance to the nearest node with higher density is always used as another indicator and is incorporated with density to determine the seeds (other indices such as fuzzy relations [20] and similarity [48] have also been used to replace distance). As in CDP, the seeds can be selected according to a decision graph, where the density is taken as the x-axis and the minimum distance is taken as the y-axis (we call this selection strategy VII-g1, which needs to be completed manually), or the descending order of the product of the density and minimum distance can be determined and the nodes with much larger products can be considered as seeds (we call this selection strategy VII-g2). From these two basic selection strategies, some adaptive changes have been made to distinguish seeds more accurately. In [44], the density and minimum distance are regularized before using selection strategy VII-g1, and the nodes whose densities are smaller than the average density of a specified number of nearest neighbors (a parameter) are further excluded from the seed set (we call this selection strategy VII-g1-a1, and its time complexity is still O ( n log 2 n ) ) since the adaptive changes do not increase the time complexity). In [48], the nodes are sorted in descending order of density and minimum similarity, and the intersection of the first K nodes from the two sorts are selected as seeds (K is a parameter and different for the two sorts). This method is quite similar to selection strategy V if we take the minimum similarity as another centrality metric, so its time complexity is O ( n log 2 n ) . We call this selection strategy VII-g1-a2. The selection strategy in [41] can be categorized into this class. Specifically, the accumulation degree is taken as the density, and the nodes are sorted in descending order of density; then, seeds are successively selected from the sort whose minimum fuzzy relation is smaller than a certain threshold, which is obtained manually from the decision graph. We call this selection strategy VII-g1-a3, which runs in O ( n log 2 n ) . In [45,46], nodes are sorted in the descending order according to the product of density and minimum distance; then, seeds are sequentially chosen from the candidate list obtained from the sort, and in the selection process, nodes in the candidate list that have distances to a chosen seed larger than the cutoff distance (a parameter) will be deleted from the candidate list. The different between [45,46] is that the former only considers the nodes with product value larger than a threshold (a parameter) to compose the candidate list, and the latter takes half of the nodes in the sort-into-candidate list. We call them selection strategy VII-g2-a1 and selection strategy VII-g2-a2, respectively, which run in O ( n log 2 n ) . In [47], the shortest path distance to nodes with higher density in a 3-step neighborhood is taken as the minimum distance (thus, the minimum distance is at most 3); the nodes with products of density and minimum distance that are ϵ -larger than the expected value are selected as seeds, where the expected value is obtained by considering all the nodes ( ϵ is a parameter, and we call this selection strategy VII-g2-a3, which runs in  O ( n ) ).
Selection strategy VIII: This strategy takes the nodes that have the best centrality in at least one neighborhood as candidate seeds and further applies a biased graph coloring algorithm to select seeds to ensure that the seeds are distributed separately. The time complexity of obtaining candidate seeds is O ( m ) , and the biased graph coloring algorithm used for enhancing seeding can run in O ( log 2 n ) . This strategy was proposed in [28].
Selection strategy IX: This strategy iteratively selects the node with the highest centrality (specifically, dynamic vote centrality) as a seed, and the centrality of other nodes is updated after a seed is selected. The time complexity is approximated to O ( n log 2 n ) . This strategy is used in the seeding algorithm named G-VB [53].
Table 1. Summary of seeding algorithms. “L” represents that the criterion or selection strategy is local, and “G” represents that it is global, and “#PRM” represents the number of parameters.
Table 1. Summary of seeding algorithms. “L” represents that the criterion or selection strategy is local, and “G” represents that it is global, and “#PRM” represents the number of parameters.
NameCriterion (L/G, #PRM)Selection StrategyRefs
Strategy (L/G, #PRM)Time Compleixty
LM-DDegree centrality (L, 0)Selection strategy I (L, 0) O ( m ) [30,31]
LM-CECentrality defined as conductance of the egonet (L, 0) [16,28,37]
LM-COREDCore dominance centrality defined as the sum of similarities to neighbors (L, 0) [28]
LM-NM-RSNode mass centrality, relation strength (L, 0) [38]
L-SCANDensity centrality defined as the number of neighbors with similarity larger than a given threshold (L, 1)Selection strategy II (L, 1) O ( n ) [43]
G-DDegree centrality (L, 0)Selection strategy III (G, 0) O ( n log 2 n ) [21]
G-EEigenvector centrality (G, 0) [32]
G-CCore centrality (G, 0) [42]
G-NMNode mass centrality (G, 0) [39]
TOPSISMixed centrality based on degree, betweenness, eigenvector and PageRank centralities (G, 0)Selection strategy IV (G, 1) O ( n log 2 n ) [34]
G-FInfluence centrality (G, 1) [36]
G-SHDegree centrality (L, 0)Selection strategy IV-a (G, 1) O ( n l o g 2 n + K d m a x ) [16,28,29]
P4SDegree, eigenvector, local clustering coefficient and PageRank centralities (G, 0)Selection strategy V (G, 1) O ( n c n log 2 n + n c K ) [33]
G-EXTDExtended degree centrality (L, 0)Selection strategy VI (G, 0) O ( n log 2 n ) [40]
G-Density-BaiDensity centrality and minimum distance (L, 1)Selection strategy VII-g1-a1 (G, 1) O ( n log 2 n ) [44]
G-Density-DengSelection Strategy VII-g1-a2 (G, 2) [48]
G-ACCDAccumulation degree centrality, fuzzy relation (L, 0)Selection strategy VII-g1-a3 (G, 1) [41]
G-Density-WangDensity centrality and minimum distance (L, 1)Selection strategy VII-g2-a1 (G, 1) [45]
G-Density-JiangSelection strategy VII-g2-a2 (G, 0) [46]
G-Density-DingExtended degree and minimum distance (L, 0)Selection strategy VII-g2-a3 (G, 1) O ( n ) [47]
G-COREDCore dominance centrality defined as the sum of similarities to neighbors (L, 0)Selection strategy VII (G, 0) O ( m + log 2 n ) [28]
G-VBDynamic vote centrality (L, 1)Selection strategy IX (G, 0) O ( n log 2 n ) [53]
GraclusCenter of each cohesive cluster (G, 1)Find K cohesive clusters; select the nodes that are the centers of the clusters (L, 1) O ( log 2 K ( n + m ) ) [16]
DMCMaximal cliques (L, 1)Select the nodes belonging to a maximal clique whose distance to another clique is less than a threshold (L, 1) O ( k m a x 2 ) 1[15]
K-plexesk-plexes (G, 2)Select the nodes belonging to distinct k-plexes (L, 1) O ( k ) [49]
1kmax is size of the largest maximal clique.
According to whether global information is involved in the selection process, the selection strategies described above can be categorized as global or local strategies. Specifically, selection strategies I and II are local, and the remaining strategies are global. Similarly, the criteria can be categorized as global or local criteria; see Table 1, where we explicitly mark the globality and locality of the criterion and selection strategy for each seeding algorithm. Clearly, the local criteria and selection strategies are more suitable for large-scale networks due to efficiency. However, there is no comprehensive comparison and analysis of the existing local seeding algorithms. Thus, we formally unify an efficient local seeding framework based on selection strategy I and provide several local seeding algorithms under this framework; furthermore, we systematically study these local seeding algorithms through comprehensive experiments. It is noted that the other local selection strategy, i.e., selection strategy II, is not considered in our work because it requires a parameter and it is nontrivial to determine the parameter value, which increases the complexity of seeding.

2.2. Local Community Detection

A traditional approach is to take a seed as a singleton community and successively add nodes to the community, with the nodes selected from the shell and giving the maximum gain by a community quality function. Some examples of this approach were proposed in [8,14,15,16,24], and they are mainly different in quality function. In [8], the quality function is R, defined as the ratio of boundary edges to all edges connected to the boundary nodes. The M function, which is the ratio of intracommunity edges to intercommunity edges, was proposed in [14], and local modularity was proposed in [24] to evaluate the quality of the community. Instead of quantifying the gain of community quality when adding one node from the shell, Bagrow selected the node with the smallest “outwardness”, which was defined as the number of neighbor nodes outside the community minus the number of neighbor nodes inside, normalized by the degree [15]. In addition, members may be removed if the removal would lead to an increase in the quality function [14]. To improve the quality of the detected community, Luo et al. divided the expansion process into three stages and proposed three dynamic membership functions for the three stages to add neighbor nodes [20]. LCDNN iteratively added nodes into the community according to two definitions: the nearest node with greater centrality and the fuzzy relation [26]. To discover ambiguous community structures, in [46], link prediction was first used on central nodes to enhance the community structure, and then community expansion was performed by successively adding neighbor nodes whose most similar neighbor with greater SC value was in the community (the SC value is the product of the density and minimum distance). Other expansion methods can be found in [21,32,35,38,39,41,42,54,55]. In addition, an evolutionary algorithm (specifically, PSO) was introduced to perform local community detection in [25], which enriched research on local community detection.
Another approach to expanding the community from seeds is based on random walks. In contrast to the method that optimizes a specified community quality by iteratively adding nodes from the shell, this approach performs a random walk from a seed with probability transformations. Since the random walk is most likely to become trapped in a dense subgraph around the seed, the nodes in the community should have a high probability. A high-quality community is thus obtained from the top-ranked nodes, where the nodes are ranked according to the resulting probability. There are several instances of this approach; see [21,56,57,58]. To simultaneously uncover multiple local communities to which a set of query nodes belong, Bian et al. proposed a memory-based random walk method, which can further avoid the query bias issue by recording the entire visiting history of each walker [27]. In our experiments, we implement the method based on the PageRank-Nibble algorithm as the community finder from a given seed, since it has been demonstrated to be the most effective [21,57] and has been widely used in community detection [16,28,59].

3. Preliminaries

In this section, we present the notations used in this paper, and review some measurements that can be used as local centrality metrics.

3.1. Notations and Problem Statement

An undirected network is denoted as G = ( V , E ) , where V is the set of nodes and E is the set of edges in G. Let n = | V | and m = | E | denote the number of nodes and edges respectively, and A denote the adjacent matrix of G, where A ( u , v ) = 1 if there is an edge between node u and node v and A ( u , v ) = 0 otherwise, while A ¯ u denotes the mean value of the row corresponding to node u. For a node, u V , N r ( u ) denotes the set of neighbors that are most r hops away from u, and N r + ( u ) = N r ( u ) u ; u s r-hops neighborhood is the subgraph only consisting of the nodes in N r + ( u ) . For convenience, the subscript is ignored when r = 1 ; neighbors refer to a node’s one-hop neighbors when not specified, and egonet is used to indicate the one-hop neighborhood. d u denotes the degree of node u, and d m a x is the maximum degree. For a set of nodes U, the volume of U is defined as v o l ( U ) = u U d u .
Given a network G = ( V , E ) , the seeding problem is to find a set of seeds denoted as S, so that the global community structure can be obtained by expanding each seed s S . Generally, the seeding problem can be solved using global information or local information, resulting in global seeding algorithms and local seeding algorithms. Here the “local” refers to the r-hop neighborhood of a node (r is usually a small integer), and the “global” refers to the entire network and involves the information outside the r-hop neighborhood. Taking node 3 in Figure 1 as an example, when r = 1 , its local information contains nodes in N + ( 3 ) = { 0 , 1 , 3 , 4 , 6 } and the edges between these nodes. In this paper, we focus on local seeding algorithms.

3.2. Local Centrality Measurements

In the local seeding algorithms, each node’s centrality should be evaluated based on its local information, thus we consider several metrics that can be used to measure local centrality. These local centralities are presented below.
Degree (D). High-degree nodes are usually considered to be “central” nodes since they link to many other nodes. For this reason, degree is often used as a centrality metric [16,21,28,29,30,31].
Extended degree (EXTD). Being adjacent to nodes with many neighbors has a positive effect on one’s influence in the network; therefore, the extended degree, defined as the number of edges linked to the node plus the number of edges linked to each of the node’s neighbors, is used as a centrality metric [40]. For a node u, its extended degree is mathematically formulated as
e x t d ( u ) = d u + v N ( u ) d v
Accumulated degree (ACCD). Considering that the microenvironment composed of a two-hop (or more) neighborhood can more properly reflect the centrality of a node, the accumulated degree is used as the centrality in [22,26,41] for efficiency. The accumulated degree of a node u is defined as
a c c d ( u ) = d u + v N ( u ) ( d v + w N ( v ) d w )
Node mass (NM). The nodes in the core part of a community are generally densely connected to each other. Centrality should have a higher value for nodes with denser neighborhoods. Thus, the node mass, defined as the number of edges in the egonet, is used as the centrality in [38]. The node mass of a node u is mathematically formulated as
m a s s ( u ) = | { ( v , w ) E | v , w N u + } |
Conductance of the egonet (CE). Conductance, which originally evaluated the ratio of outgoing connections to the total number of connections in a cluster, is also used as a centrality metric [16,28,37]. Specifically, for a node u, its conductance centrality is
c o n d u c t a n c e ( u ) = | { ( v , w ) E | v N + ( u ) , w V N + ( u ) } | v o l ( N + ( u )
which evaluates the density level of u’s neighborhood by counting the edges in the egonet and the ones between the egonet and the remaining network. If there are fewer edges leaving the egonet and more edges in it, then the conductance centrality is lower, which means u is egonet is denser. According to the original definition, if the volume of the egonet is larger than that of the remaining network, then the volume of the remaining network is taken as the dominator; however, this does not usually happen when conductance is applied to the egonet and as a local centrality, it is also reasonable to only consider the neighborhood. Note that the opposite value, i.e., zero minus the conductance, is taken in our implementation to incorporate the conductance of the egonet into the seeding framework presented in Section 4.1.
In addition, we apply the definitions of density and the local clustering coefficient to measure a node’s local centrality since for a given node, these two definitions directly quantify the density level of the egonet.
Density of the egonet (DE). Given a node u, the density of its egonet is
d e n s i t y ( u ) = | { ( v , w ) E | v , w N + ( u ) } | d u + 1 2
which evaluates the density of the egonet by comparing the it with a complete graph induced by the same nodes. The closer the egonet is to the complete graph, the higher the density value is.
Local clustering coefficient (LCC). Given a node u, its local clustering coefficient is
L C C ( u ) = | { ( v , w ) E | v , w N ( u ) } | d u 2
which evaluates the density of the egonet by counting the number of adjacent neighbors; the more adjacent neighbors there are, the greater the corresponding local clustering coefficient is.
Core dominance (CORED). Based on the intuition that highly similar nodes that are adjacent are expected to belong to the same community and that the core nodes are expected to be adjacent to many members of the community, core dominance is formulated as a centrality metric [35]. The core dominance of a node u is defined as
c o r e d ( u ) = v N ( u ) s i m ( u , v )
where s i m ( u , v ) is the similarity between nodes u and v and can be calculated by the cosine index, Jaccard index or Pearson correlation coefficient, which are defined as follows:
s i m C o s i n e ( u , v ) = | N ( u ) N ( v ) | | N ( u ) | | N ( v ) |
s i m J a c c a r d ( u , v ) = | N ( u ) N ( v ) | | N ( u ) N ( v ) |
s i m P e a r s o n ( u , v ) = k ( A u , k A ¯ u ) ( A v , k A ¯ v ) k ( A u , k A ¯ u ) 2 k ( A v , k A ¯ v ) 2
It is noted that in [35], the extended Jaccard similarity (i.e., where the 2-hop neighbors are also considered) was used. However, we experimentally found that the extended similarity works poorly and takes much more running time (seeding with the extended similarity cannot return a result for large-scale networks after more than 12 h). Thus, we only consider the Jaccard standard similarity in this paper. In addition, similarity indices for link prediction can be used, and it was demonstrated that the preference attachment performed best [28], so we also use this similarity index, which is defined as
s i m P A ( u , v ) = d u × d v

4. Local Seeding in a Unified Framework

In this section, we present a unified framework for local seeding that is efficient and simple, and then we obtain a total of 11 local seeding algorithms (among them, 3 are existing algorithms) from this framework by adopting different centrality metrics to measure the node centralities. In the unified framework, whether a node is chosen as a seed is dependent only on its local information, i.e., the centrality values of it and its neighbors, and the centrality value of each node is measured only by its local information too. Next, we first present the unified framework and the local seeding algorithms obtained from this framework, and then analyze the time complexity of these algorithms.

4.1. The Local Seeding Framework

Given a node u and its r-hop neighborhood, and a predefined local centrality metric (denoted as l o c a l _ c e n t r a l i t y ), the local framework that determines whether u is a seed is shown in Algorithm 1. First, we check u’s neighbors: if any of them is chosen as a seed, then u is not chosen anymore (see lines 2–4); otherwise, calculate the l o c a l _ c e n t r a l i t y of each node v N + ( u ) , using its r-1-hop neighborhood (see line 5); this step is presented in lines 1–6. Then, we check the u local centrality value and those of its neighbors, and if u has the best centrality (i.e., has the largest centrality value), then it is chosen as a seed; otherwise, it is not (see lines 8–12). Note that this framework is obtained from seeding strategy I [30,31], and adjacent nodes will not be simultaneously chosen as seeds to guarantee the seeds being separated from each other.
Algorithm 1 The local seeding framework.
Input:u: the checked node; u’s r-hop neighborhood; local_centrality: the local centrality
      metric; s e e d ( v ) : whether v is a seed (True) or not (False) for each v N ( u )
Output: s e e d ( u )
1:
for each node v N + ( u )  do
2:
    if v != u and s e e d ( v ) = = T r u e  then
3:
         s e e d ( u ) = F a l s e ; go to line 12
4:
    end if
5:
    Calculate local_centrality(v) based on v’s r-1-hop neighborhood
6:
end for
7:
s e e d ( u ) = T r u e
8:
for each neighbor v N ( u )  do
9:
    if local_centrality(u) < local_centrality(v) then
10:
         s e e d ( u ) = F a l s e ; go to line 12
11:
    end if
12:
end for

4.2. Local Seeding Algorithms

From the framework presented in Algorithm 1, different local seeding algorithms can be obtained by using different metrics to calculate local_centrality. In this paper, we try all the local centrality metrics presented in Section 3.2 and obtain 11 local seeding algorithms.
See the definitions in Section 3.2: D, EXTD and ACCD (Equations (2) and (3)) are centralities based on degree, and NM, CE, DE and LCC (Equations (3)–(6)) evaluate a node’s local centrality according to the denseness of the neighborhood. CORED (Equations (7)–(11)) measures the similarity of a node to each neighbor and takes the sum of the similarities as that node’s local centrality. Thus, we categorize the 11 local seeding algorithms into three classes according to the centrality metrics: the ones with D, EXTD and ACCD are the degree-based seeding algorithms; the ones with NM, CE, DE and LCC are the denseness-based seeding algorithms; and the ones with COREDC, COREDJ, COREDP and COREDPA are the core-based seeding algorithms. For convenience, we list the abbreviations of these local seeding algorithms in Table 2, and we will use them in the rest of this paper. Moreover, from the definitions of centrality metrics (in Section 3.2) and Algorithm 1, it can be seen that, given a node, all of these local seeding algorithms only require the information in their r-hop neighborhood to check whether it is a seed. Particularly, r is 1 for the local seeding framework, 1 for centrality D, 3 for centrality ACCD and 2 for the other centralities; thus, r is 2 for LM-D, 4 for LM-ACCD and 3 for the others. By iteratively checking each node in the network, these algorithms can find all the seeds.
LM-D, LM-CE and LM-COREDPA are three existing local seeding algorithms, while the others are new ones; the centrality metrics COREDC, COREDJ and COREDP are developed in this paper. We also tried the density centrality, i.e., taking the number of similar neighbors as a node’s local centrality, under the three similarity indices shown in Equations (8)–(10). To set a proper value of the parameter, which is required to decide whether two adjacent nodes are similar, we applied the heuristic approach used in [43]. However, there are usually multiple values or no proper value for many networks, leading to bad results. Thus, we do not consider the density centrality in this paper.

4.3. Time Complexity Analysis

Assuming that the centrality measurement for each node has been performed, the local seeding framework decides whether node u is a seed by comparing its centrality value with those of its neighbor nodes with a time complexity of O ( d u ) ; see lines 4–8 in Algorithm 1. If the centrality value of node u is the best but not the only one in its egonet, we further check whether the neighbor nodes with the best centrality value have already been marked as seeds. This almost does not increase the time complexity if we apply the data structure of a hash table to mark the seeds. To determine all the seeds in the network, each node is sequentially checked by this process, so the total time complexity for this local seeding framework is O ( m ) . For LM-D, the time complexity is still O ( m ) since the degree of each node is usually known when the network is stored in the data structure. For LM-EXTD, the extended degrees of all the nodes can be obtained in O ( m ) , since the node u extended degree can be obtained in O ( d u ) . For LM-ACCD, we can first compute each node’s extended degree in O ( m ) and then compute the accumulated degree based on the extended degree, which also runs in O ( m ) since it is the same as the calculation of the extended degree; thus, the time complexity is still O ( m ) . For LM-NM, LM-CE, LM-DE and LM-LCC, all four centrality metrics, i.e., the node mass, the conductance of the egonet, the density of the egonet and the local clustering coefficient, can be calculated by finding the intersection of adjacent nodes’ neighbor sets, which can be done in O ( d m a x ) in the worst case; thus, the time complexity is O ( d m a x · m ) . LM-COREDC, LM-COREDJ and LM-COREDP need to calculate the similarity between each pair of adjacent nodes, which can be done in O ( d m a x ) . Each node’s core dominance can be obtained in O ( d u ) , and thus, the total time complexity of the centrality calculation is O ( d m a x · m ) . For LM-COREDPA, the centrality calculation can be completed in O ( m ) since only the node degree is required to compute the core dominance. The time complexities of these local seeding algorithms are summarized in Table 2.

5. Detecting Communities

For a specified seed, an algorithm of local community detection is required to expand this seed to uncover its community. The global community structure of the network is then obtained by expanding all the seeds. In this section, we first describe the used local community detection algorithm and then summarize the process of obtaining all the communities in the network.
Local community exploration. For a specified seed, we apply the technique of approximate personalized PageRank vector to discover its belonging to community, since this technique is very efficient in practice and has been widely used in community detection [16,21,28,56,59]. The approximate personalized PageRank vector related to a seed is a stationary distribution of a random walk starting from that seed, and at each node the random walker moves to neighbors with probability α and jumps back with probability ( 1 α ). To compute this vector, we use the method of PageRank Nibble with the time complexity being proportional to the size of the detected community, rather than the size of the network [29]. Nodes corresponding to high element values in the vector are considered to be well connected around the seed, and a sweep over the vector is performed to generate the community to which the seed belongs. The reader is referred to [59] for details due to space limitation.
Global community structure exploration. To obtain the global community structure by expanding seeds, the first step is to select a set of seeds, which is fulfilled by the local seed algorithms presented in Section 3 in this paper. The second step is to perform the local community exploration described above to identify the community that each seed belongs to. Ideally, there is one seed selected per community. Although we have constrained two chosen seeds to be separated from each other in the seeding step, it is also possible that local communities obtained from different seeds correspond to the same one. Thus, the final step is to perform merging operation on the local communities. Particularly, we apply the merging operation in [59]: if the smaller community has at least σ percent of members that are also in the larger one, then we merge them.
Time complexity analysis. Discovering a local community in this paper requires computing the approximate personalized PageRank vector and performing a sweep over the vector, whose computational cost is related to the topological structure of the seed’s local view. The time complexity is therefore complicated and hard to be inferred compactly. However, a number of previous publications have demonstrated that the computational cost of this process only depends on the size of the detected community and is approximated to O ( v o l ( D i ) ) ( D i is the detected community) [21,28,37,56]. Thus, the time complexity of the seed expansion phase is approximated to O ( i = 1 | S | v o l ( D i ) . The merging step can be performed in the time complexity of O ( i = 1 | S | ) i · | D i | .

6. Experiments

In this section, experiments are conducted to evaluate these local seeding algorithms on a number of networks and analyze the experimental results. Before presenting the results, we briefly describe the evaluation metrics and the experimental setting.

6.1. Evaluation Metrics and Experimental Settings

To evaluate the effectiveness of the local seeding algorithms, we consider the number of seeds, the coverage and the quality of the resulting communities. The coverage is the ratio of nodes in the detected communities to all the nodes in the network. Four widely used metrics are used to evaluate the quality of the resulting communities and they are as follows: the F1-score, normalized variation of information (Nvi) [59,60], modularity [61] and conductance. The former two compare the consistency of the detected communities to the ground truth, and the latter two evaluate the cohesiveness in communities and the separateness between communities. For F1-score, we align both the detected and ground-truth communities to each other, resulting in relatively lower values compared with some previous publications. Details are referred to [62,63]. For conductance, we take the average over all the communities. For Nvi and modularity, we apply the overlapping versions since there are overlapping communities in both the detected communities and the ground truth; details can be found in [59,60,61,63]. Higher F1-score, Nvi and modularity indicate a better result, while lower average conductance indicates a better result.
The merging parameter θ is set to 0.65. The algorithms are all implemented in C++, and all the experiments are performed on a PC with an Intel i7 4.0 GHz and 16 GB RAM.

6.2. Results on Real Networks

We apply eight widely used real networks with ground-truth communities for this experiment. These networks include (online) social networks, copurchasing networks and collaboration networks. Table 3 shows the information of these networks. The scale of these networks ranges from tens of nodes and edges up to millions of nodes and billions of edges; the number of ground-truth communities spans from several to millions (see the columns “Nodes”, “Edges” and “Coms” for the scale information). The Karate network indicates 78 relationships among 32 members, such as trainees, coaches and administrators, in a karate club. There are two ground-truth communities shown in Figure 2a, and they represent different fractional conflicts. The Dolphin network indicates the communications among 62 dolphins over 7 years, and the ground-truth communities are shown in Figure 3a. The Football network indicates the American college football matches held in 2000. The nodes represent football teams participating in a match, and the edges between two nodes indicate the two corresponding teams that played against each other in the match; the teams from the same conference form one ground-truth community. The Amazon network represents products as nodes, each edge indicates a copurchasing relation, and the ground-truth communities are equivalent to product categories. The DBLP network is a coauthorship network, and the ground-truth communities are created by grouping authors that publish in the same conference or the same journal. The YouTube, LJ and Orkut networks are online social networks, where the nodes represent users and the edges represent the interactions between users; the user-defined groups are considered the ground-truth communities. More detailed information about these networks can be found in the corresponding references, which are listed in the “Ref” in Table 3.
The numbers of seeds and the coverage of the resulting communities by different seeding algorithms are shown in Table 4 and Table 5, respectively. The average F1-score and average Nvi are shown in Table 6, and the modularity and average conductance are shown in Table 7. From Table 4, we can see that the degree-based algorithms clearly select fewer seeds over large networks, especially LM-ACCD and LM-EXTD, while the denseness-based algorithms clearly select more seeds, especially LM-DE and LM-LCC. However, there are two exceptions: LM-NM (a denseness-based algorithm) and LM-COREDPA (a core-based algorithm) select fewer seeds than LM-D (a degree-based algorithm) in most cases. This is because both LM-NM and LM-COREDPA prefer nodes with large degrees, since LM-NM takes the node mass as the centrality metric, which evaluates the denseness of a neighborhood by counting the number of edges between neighbors without normalization by degree, and LM-COREDPA takes the core dominance with preference attachment as the centrality metric, which evaluates the influence of a node by the multiplication of degrees. The coverage of the resulting communities, shown in Table 5, is almost positively correlated with the number of seeds, i.e., the more seeds there are, the higher the coverage is.
From Table 6, we can see that all the seeding algorithms lead to relatively high F1-scores and Nvi over small networks, such as Karate, Dolphin and Football and relatively low F1-scores and Nvi over large networks such as Amazon, DBLP, YouTube, LJ and Orkut. In terms of the F1-score, the denseness-based algorithms work best overall, except LM-NM which selects much fewer seeds in many cases. Regarding the degree-based algorithms and core-based algorithm, the latter ones are better overall than the former ones. However, there is an exception: LM-COREDPA performs worse than LM-ACCD, which is the best among the degree-based algorithms, in most cases. LM-COREDJ performs best overall among the core-based algorithms. Moreover, the degree-based algorithms and core-based algorithms can produce much better results over small networks than over large networks. In terms of Nvi, the degree-based algorithms perform best, especially LM-ACCD, which produces the highest Nvi on all the networks except, Dolphin, Football and Orkut (it also produces competitive Nvi values on these three networks). The denseness-based algorithms perform worst overall, except that LM-NM is competitive and LM-CE can produce a good Nvi on some networks, such as Karate, Dolphin and Orkut. Among the core-based algorithms, LM-COREDPA performs best. In summary, over small networks, the degree-based algorithms lead to both a good F1-score and a good Nvi, but over large networks, the result is different: the degree-based algorithms, LM-NM and LM-COREDPA always lead to lower F1-scores but higher Nvi, and among the denseness-based algorithms, LM-DE and LM-LCC always lead to higher F1-scores but lower Nvi, and LM-CE leads to relatively competitive F1-scores and Nvi over all the networks, except YouTube and LJ.
From Table 7, we can see that over the Orkut network, which is relatively dense, all the algorithms lead to very low modularity and very high conductance, which is probably because the relatively high density of the network makes the boundary between communities unclear. In terms of modularity, the core-based algorithms and the degree-based algorithms perform best; among the core-based algorithms, the best algorithm overall is LM-COREDJ, followed by LM-COREDP. The denseness-based algorithms perform worst, except that LM-NM performs quite well (on the networks YouTube and LJ, LM-NM produces the best modularity). In terms of conductance, the degree-based algorithms perform best, among which LM-ACCD is the best. In summary, the core-based algorithms and degree-based algorithms perform best in terms of modularity and conductance, and the denseness-based algorithms perform worst, except LM-NM, which leads to competitive results with those of the core-based and degree-based algorithms.
From the analysis above, we can see that, in terms of F1-score and Nvi, almost all the seeding algorithms lead to much worse results on large networks than on small networks, implying that seeding as well as detecting communities in large networks is complicated and requires more studies. Further, an overall trend in large networks can be inferred from Table 4, Table 5, Table 6 and Table 7: the evaluation metrics Nvi, modularity and conductance generally prefer the obtained community structures that have low coverage (usually corresponding to fewer seeds), while the F1-score metric prefers the ones that have high coverage (usually corresponding to many more seeds). As seen in the last five columns in Table 4, Table 5, Table 6 and Table 7, the degree-based algorithms, LM-NM and LM-COREDPA always yield the lowest coverage, while the corresponding Nvi, modularity and conductance are almost the best (over the Orkut network, the conductance metric does not follow this pattern); the denseness-based algorithms, except LM-NM, always yield the highest coverage, and the corresponding F1-scores are the highest. To explain this, we explore the results from the aspects of network, ground-truth communities, position of seeds, detected communities and evaluation metrics, and find that in the case where the coverage is low, there are fewer seeds selected and those seeds are generally hub nodes, resulting in fewer but large detected communities with relatively good structure (see LM-D and LM-COREDPA for examples); in the case where the coverage is high, a large number of seeds are selected with many improper seeds, resulting in a large number of detected communities but many of them are not good (see LM-DE and LM-LCC for examples). Consequently, the modularity and conductance are generally better in the former case since these two metrics are structural metrics, and the F1-score is generally higher in the latter case, since the large number of detected communities increase the possibility of intersection between the ground truth and the detected communities. The Nvi is generally higher in the former case, which is partially because that several ground-truth communities (probably with overlaps) may be included by a detected community and the conditional entropy of the ground truth with respect to the detected communities is very low according to its definition. However, the comprehensive explanation for the results of F1-score and Nvi needs further study, because many factors, such as the ground-truth communities, detected communities and evaluation metrics themselves, can influence the results, which is quite a complicated issue, and we leave this for future work. The results imply, to some extent, that there is a lack of “perfect” metrics for community evaluation, which is a further challenge to the task of community detection. From the analysis and discussion above, it can be seen that the result of LM-NM is quite different from the ones of the other denseness-based seeding algorithms (i.e., LM-CE, LM-DE and LM-LCC) in many cases. From Equations (3)–(6) it can be seen that NM evaluates a node’s local centrality by counting the internal edges of its neighborhood without normalization, while CE, DE and LCC are all normalized. This causes NM to prefer nodes with high degree compared with CE, DE and LCC, resulting in LM-NM behaving differently.
It is still difficult to infer a clear conclusion, such as which algorithms work better on which networks, since these seeding algorithms perform differently in terms of different evaluation metrics. To obtain a general comparison result, over each network, we rank the algorithms according to each metric and obtain an average rank. For instance, over the Karate network, the LM-D rank is 3 according to the coverage metric since it leads to the third highest coverage; its rank is 1 according to the F1-score, Nvi and conductance metrics; and its rank is 2 according to the modularity metric. Thus, the average rank of LM-D over the Karate network is 1.6. Then, for each network, we list the best and the second best ranked algorithms according to the average rank; see Table 8. We can see that the degree-based algorithms, the core-based algorithms (except LM-COREDP), LM-NM ranks highest over Karate (1.6), followed by LM-CE (2.2); LM-CE ranks highest over Dolphin (1.4), followed by LM-EXTD, LM-NM, LM-COREDC and LM-COREDJ (2.0); LM-D ranks highest over Football (2.4), followed by LM-NM (3.4); LM-COREDJ ranks highest over Amazon (3.8), followed by LM-NM (4.4); LM-EXTD, LM-ACCD and LM-COREDJ rank highest over DBLP (4.8), followed by LM-NM (5.0); LM-NM ranks highest over YouTube (5.0), followed by LM-D (5.2); LM-EXTD ranks highest over LJ (3.8), followed by LM-COREDPA (4.2); and LM-COREDJ ranks highest over Orkut (2.8), followed by LM-COREDP (3.6). Further, we can obtain that the core-based algorithms perform best over four networks (three of them are large networks, and over the three large networks, LM-COREDJ is the best algorithm) and perform second best over three networks (two of them are large networks); the degree-based algorithms perform best over four networks (two of them are large networks), and perform second best over two networks (one of them is a large network); the denseness-based algorithms perform best over three networks (one of them is a large network), and perform second best over five networks (two of them are large networks). Overall, the core-based algorithms perform best, and among them, LM-COREDJ performs best; LM-EXTD performs best among the degree-based algorithms, and LM-NM performs best among the denseness-based algorithms.
To compare different local seeding algorithms in a fine-grained way, for the two smallest networks, Karate and Dolphin, we visualize the seeds and the communities resulting from different local seeding algorithms, while for the remaining networks, we present the approximations of the ground-truth communities obtained by different local seeding algorithms. Moreover, for the large networks, we only consider the top 5000 ground-truth communities, which are the ones of highest quality (for the YouTube network, only the top 3355 ground-truth communities are provided), since not all the ground-truth communities are structurally good [21].
The visualizations of ground-truth communities and detected communities for the Karate and Dolphin networks are shown in Figure 2 and Figure 3, respectively. The ground-truth communities are distinguished by different shapes, i.e., squares and triangles. The members of each detected community are marked with one color, and the overlapping members are indicated by a circle with several colors corresponding to belonging to communities. The nodes not belonging to any community are colored white, and the seeds are enlarged in size. Over the Karate network, the degree-based algorithms and the core-based algorithms (except LM-COREDP) select the same seeds (i.e., nodes 1 and 34) and therefore yield exactly the same results, which are two communities with two overlapping nodes (nodes 3 and 9) and five nodes not belonging to any community (nodes 10, 12, 17, 25 and 26). This result is relatively consistent with the ground truth. From the network structure, we can see that node 12 connects to only one member of the “square” community and is therefore not detected in this community, and node 3 is adjacent to the same number of members in both communities and is therefore taken as an overlapping member. Because of node 3, node 9 is also taken as an overlapping member. Nodes 25 and 26 are relatively far away from the seed, i.e., node 34, so they are not detected in the “triangle” community. LM-CE selects two seeds for each ground-truth community and splits each ground-truth community into two subcommunities. However, for the “square” community, the two corresponding subcommunities merge into one community that is very similar to the ground-truth community. LM-COREDP selects two seeds, i.e., nodes 25 and 30, for the “triangle” community, and splits it into two subcommunities, but these two subcommunities are merged into one that is very similar to the ground-truth community; it selects two seeds, i.e., nodes 4 and 6, for the “square” community, and the communities detected from these two seeds are quite different from the ground-truth community. For LM-ED and LM-LCC, the detected communities are quite different from the ground truth, since many unreasonable seeds are selected.
Over the Dolphin network, there are also two ground-truth communities, which can be seen from the visualization in Figure 3. The detected communities that are most similar to the ground truth are yielded by LM-CE, and the only difference is that node 8 is taken as an overlapping member and node 40 is taken as a member of the “square” community. Although LM-CE selects two seeds for the “square” community, this ground-truth community is detected perfectly because the community detected from seed 61 is a subset of the one detected from seed 14. For the “triangle” community, four seeds are chosen by LM-CE, and the ground-truth community is determined by merging the communities expanded from these seeds. LM-EXTD selects nodes 14 and 15 as seeds, and LM-NM, LM-COREDC and LM-COREDJ select the same seeds, which are nodes 14, 15, 46 and 48; but they yield the same communities that very similar to the ones by LM-CE, and the only difference is that nodes 5 and 12 are not detected in the “triangle” community. LM-D selects one seed for the “square” community, and from this seed, the ground-truth community is well detected, except that nodes 49 and 61 are not taken as members, due to their sparse connections to other members. For the “triangle” community, LM-D selects three seeds, and the communities expanded from these seeds are merged into one, where nodes 2, 8, 20, 28, and 55 are taken as overlapping members due to the fuzzy boundary. In addition, nodes 5, 12 and 40 are not taken as members. LM-ACCD selects nodes 15 and 58 as seeds and yields communities that take nodes 8 and 37 as overlap. LM-COREDPA yields communities that are similar to those yielded by LM-CE and LM-D. LM-COREDP selects nodes 14 and 28 as seeds for the “square” community, and this community is well detected by merging the two subcommunities obtained from the seeds, but it selects nodes 34, 46 and 48 as seeds for the “triangle” community, resulting in unreasonable detected communities. For LM-DE and LM-LCC, the detected communities are quite different from the ground truth because too many nodes are chosen as seeds.
Overall, the visualization results for the two smallest networks are consistent with the results shown in Table 5, Table 6 and Table 7. The degree-based algorithms, the core-based algorithms (except LM-COREDP) and LM-NM perform best over Karate, followed by LM-CE; LM-CE performs best over Dolphin, followed by LM-NM, the core-based algorithms (except LM-COREDP) and the degree-based algorithms, which are very similar to each other; and LM-DE and LM-LCC always select too many seeds and cannot discover the ground-truth communities well. In addition, some nodes that have small egonets are chosen as seeds by LM-CE, e.g., nodes 17 and 25 in Karate. These nodes are obviously not the best choices for seeds, which further influences the result of community detection. Other local seeding algorithms have similar disadvantages, especially LM-DE and LM-LCC. A few attempts have been made to filter out those nodes, e.g., Gleich and Seshadhri further excluded the nodes of local minimal conductance whose degrees are lower than a specified value [37], and Whang et al. first removed the nodes with lower degrees by extracting the largest biconnected component of the network and then performed seeding on the largest biconnected component [16]. However, how to eliminate those nodes from the seed set is still a critical issue, which we will study in future work.
The approximations to the (top) ground-truth communities for the remaining networks are presented in Figure 4. The x-axis depicts ground-truth community, and the y-axis is the Jaccard similarity between the ground-truth community and the corresponding detected community. It can be seen that over the Football network, this result is consistent with that corresponding to the F1-score metric, which is reasonable since all 12 ground-truth communities are considered here. Over Amazon, LM-COREDJ and LM-CE yield communities that are most similar to the ground truth, followed by LM-COREDP; over DBLP and YouTube, LM-CE performs best, followed by LM-COREDJ and LM-LCC, respectively; over LJ, LM-CE performs best, followed by LM-DE, LM-LCC and LM-COREDJ; and over Orkut, LM-LCC and LM-DE perform best, followed by LM-CE. The degree-based algorithms, LM-NM and LM-COREDPA always yield the worst results for the large networks, which further indicates to some extent that using only metrics such as Nvi, modularity and conductance to evaluate detected communities is one sided.
To evaluate the efficiency, we compare not only the running times consumed by seeding but also those consumed by detecting communities. Here, we do not consider the Karate, Dolphin and Football networks because both seeding and detecting communities over these networks are performed very quickly, and in many cases, the running time is close to zero. To clearly compare the running times of different algorithms, we compute the relative running time for each algorithm over each network. Specifically, for each network, we scale the running time of each algorithm to the range of [0, 1] by dividing by the maximal running time on this network. The relative running times are shown in Figure 5. The most efficient algorithm is LM-D, followed by LM-EXTD and LM-COREDPA. The most time-consuming algorithms are the denseness-based ones overall, among which LM-DE costs the most running time, followed by LM-LCC, LM-CE and LM-NM; the difference among LM-CE, LM-DE and LM-LCC is small, but in the phases of seed expansion and merging, LM-CE takes much less time compared with LM-DE and LM-LCC. This is because LM-DE and LM-LCC select many more seeds than LM-CE, which almost directly determines the running times of seed expansion and merging. Among the core-based algorithms, LM-COREDPA is the most efficient one, and the difference between the other three ones is not large. The running times at the phases of seed expansion and merging for the seeding algorithms are positively related to the number of chosen seeds; for example, because they select the fewest seeds, LM-ACCD, LM-EXTD and LM-COREDPA take the least running time at the phases of seed expansion and merging, followed by LM-D.

6.3. Results on Synthetic Networks

In this experiment, we generate synthetic networks using an LFR generator [65], which can construct networks with realistic properties as well as complete ground-truth communities. Specifically, nine synthetic networks are generated, each containing 2000 nodes, but with an increasing mixing parameter, which indicates the difficulty level of discovering communities. In the first network, the mixing parameter is 0; in the subsequent networks, the mixing parameter sequentially increases by 0.1; and finally, in the last network, the mixing parameter is 0.8, which indicates that the communities are very difficult to discover. The other parameters remain the same over all nine networks and are listed in Table 9.
The number of seeds selected by different algorithms over different networks is listed in Table 10. The results for synthetic networks are almost consistent with those for real networks. Generally, the denseness-based algorithms (except LM-NM) select the most seeds over each network, especially LM-DE and LM-LCC; the degree-based algorithms, LM-NM and LM-COREDPA select the fewest seeds over each network. Moreover, the number of seeds decreases overall with the increase in the mixing parameter for the denseness-based algorithms (except LM-NM), except that LM-CE selects an increasing number of seeds when the mixing parameter is in the range of [0.5, 0.8]; the number of seeds decreases sharply when the mixing parameter is 0.1 and then changes few for the other algorithms. The coverage resulting from different seeding algorithms is shown in Figure 6. The coverage is positively correlated with the number of seeds; i.e., the more seeds there are, the higher the coverage is. Thus, the coverage shows a downward trend overall along with the increase in the mixing parameter for the denseness-based algorithms (except LM-NM), except that LM-CE has a little increase coverage when the mixing parameter is in the range of [0.5, 0.8]. The coverage decreases sharply when the mixing parameter is 0.1 and then changes little for the other algorithms except LM-D (in contrast, LM-D has an increase, but its coverage is always very low), indicating the challenge for seeding introduced by obscure boundaries among communities.
The F1-score, Nvi, modularity and conductance resulting from different seeding algorithms are shown in Figure 7. First, it can be seen that for all the seeding algorithms, the metric values generally worsen with the increase in the mixing parameter. This is reasonable since the community structure becomes less clear as the mixing parameter increases. Second, several algorithms, such as LM-CE and the core-based algorithms (except LM-COREDPA), perform well when the mixing parameter is 0, especially LM-CE, which performs best in terms of almost all the evaluation metrics. However, when the mixing parameter increases, their performance becomes unstable and is no longer better than that of some other seeding algorithms, e.g., LM-DE and LM-LCC produce higher F1-scores than them when the mixing parameter is 0.1 and 0.2, and LM-COREDJ produces a lower conductance when the mixing parameter is 0.1, but an increasing conductance overall when the community structure becomes increasingly unclear.

7. Conclusions

In this paper, we first summarize the seeding algorithms for community detection in the literature, then obtain a unified framework for local seeding based on the existing local seeding algorithms. Under the unified framework, 11 local seeding algorithms, including 3 existing ones, are instantiated, and are categorized into three classes. Finally, we compare these local seeding algorithms on real networks and synthetic networks, and obtain some suggestive conclusions:
(1)
The degree-based algorithms usually select the fewest seeds, while the denseness-based algorithms (except LM-NM) select the most seeds.
(2)
On the real networks, LM-CE performs best in identifying the communities of high quality, closely followed by LM-COREDJ, and LM-DE and LM-LCC can also discover many communities of high quality, but due to some improper seeds being selected, the denseness-based algorithms (except LN-NM) usually yield poor results in terms of evaluation metrics, such as Nvi, modularity and conductance.
(3)
The algorithms that select a few seeds, including degree-based algorithms, LM-NM and LM-COREDPA, perform well on small real networks but can only discover a few communities in large-scale networks. This is because they prefer to choose nodes with high degree as seeds, and in small networks, the community members are gathered around the high-degree nodes, while in large-scale networks, the community structure is much more complicated, and there are a few high-degree nodes adjacent to a large number of nodes, resulting in detecting a few communities while missing many ground-truth communities. This result indicates, to some extent, that the algorithms that perform well on small networks may not be suitable for large networks, even when the small networks have the same characteristics, such as a power-law distribution of degrees and the small world phenomenon, with the large networks.
(4)
The core-based algorithms seem the most suitable for real networks, considering all the evaluation metrics. Compared with the denseness-based algorithms, they can select fewer improper seeds, resulting in fewer noisy community; compared with the degree-based algorithms, they can select more seeds, thereby discovering more communities. Among the core-based algorithms, LM-COREDJ works best overall.
(5)
The core-based algorithms (especially LM-COREDJ) have the best balance between quality and cost since they perform best overall on real networks and also work well on synthetic network when the mixing parameter is small; they cost more running time than the degree-based algorithms in many cases, but they are more efficient than the denseness-based algorithms.
(6)
For the synthetic networks with mixing parameter 0, i.e., those in which the community structure is very clear, LM-CE performs best; the core-based algorithms (except LM-COREDPA) can also discover the communities well in this case.
Moreover, we find from the experimental results that all the seeding algorithms perform relatively poorly over large networks, which indicates that seeding as well as community detection in large networks is still challenging and requires further study. Several possible lines of future study are as follows:
(1)
Explore approaches to filter out the improper seeds. There are improper seeds in the seed set obtained by many seeding algorithms, which brings noise or redundancy to the subsequent community detection. This can be visually demonstrated by the results in Figure 2 and Figure 3. If those improper seeds are eliminated from the seed set, the phase of community detection can be improved from both cost and quality.
(2)
Explore the formal or mathematical definitions of “seed”. To our best knowledge, there is no standard and formal definition of seed, which probably due to the conceptual definition of community. This makes the problem of seeding more difficult and heavily hinders the exploration of seeding algorithms. Thus, it is critical to mathematically determine what kind of node the seed is. It may be an effective way to further study the problem of seeding (and community detection) from both theoretical and experimental aspects; and regarding the experimental study, the algorithms could be performed on a large number of networks to obtain statistical results.
(3)
Explore new evaluation approaches. We find that each algorithm performs differently on different evaluation metrics, which indicates that there is still a lack of good evaluation metrics for community detection. It is necessary to explore more comprehensive evaluation metrics or methods. An alternative approach is to evaluate algorithms in multiple aspects, but how to combine those multiple results requires more study.
(4)
Explore more applications of seeding. We focus on local seeding for community detection in this paper; however, there must be other interesting problems that involve seeding, e.g., node influence, influence maximization, and information diffusion. What the connections between seeding and those problems are and how seeding is applied to those problems are still unclear and require exploration.

Author Contributions

Conceptualization, Y.H.; Methodology, Y.H. and B.Y.; Software, Y.H.; Validation, Y.H.; Formal Analysis, Y.H., B.Y., B.D. and X.Z.; Investigation, B.D.; Resources, B.Y.; Data Curation, B.Y. and X.Z.; Writing—Original Draft Preparation, Y.H.; Writing—Review and Editing, Y.H., B.Y., B.D. and X.Z.; Visualization, X.Z.; Supervision, X.Z.; Project Administration, Y.H., B.D.; Funding Acquisition, Y.H., B.Y., B.D. and X.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Natural Science Foundation of China [61802034, 61977013], the Key Research and Development Program of Sichuan Province [2021YFG0333, 2022YFQ0017], the National Key Research and Development Program of China [2019YFC1509602] and the Digital Media Science Innovation Team of CDUT [10912-kytd201510].

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

All our datasets can be downloaded at https://networkrepository.com/networks.php (accessed on 3 January 2021) and http://snap.stanford.edu (accessed on 3 January 2021). The code is accessible from www.huyanmei.work/community (accessed on 6 June 2022) and can be provided by contacting the corresponding author.

Conflicts of Interest

The authors declare that they have no conflict of interest.

References

  1. Fortunato, S. Community detection in graphs. Phys. Rep. 2010, 486, 75–174. [Google Scholar] [CrossRef] [Green Version]
  2. Leskovec, J.; Lang, K.J.; Mahoney, M. Empirical Comparison of Algorithms for Network Community Detection. In Proceedings of the 19th International Conference on World Wide Web, Raleigh, NC, USA, 26–30 April 2010; Association for Computing Machinery: New York, NY, USA, 2010; pp. 631–640. [Google Scholar] [CrossRef] [Green Version]
  3. Xie, J.; Kelley, S.; Szymanski, B.K. Overlapping Community Detection in Networks: The State-of-the-Art and Comparative Study. ACM Comput. Surv. 2013, 45, 1–35. [Google Scholar] [CrossRef] [Green Version]
  4. Garza, S.E.; Schaeffer, S.E. Community detection with the Label Propagation Algorithm: A survey. Phys. Stat. Mech. Its Appl. 2019, 534, 122058. [Google Scholar] [CrossRef]
  5. Magnani, M.; Hanteer, O.; Interdonato, R.; Rossi, L.; Tagarelli, A. Community Detection in Multiplex Networks. ACM Comput. Surv. 2021, 54. [Google Scholar] [CrossRef]
  6. Huang, X.; Chen, D.; Ren, T.; Wang, D. A survey of community detection methods in multilayer networks. Data Min. Knowl. Discov. 2021, 35, 1–45. [Google Scholar] [CrossRef]
  7. Souravlas, S.; Sifaleras, A.; Tsintogianni, M.; Katsavounis, S. A classification of community detection methods in social networks: A survey. Int. J. Gen. Syst. 2021, 50, 63–91. [Google Scholar] [CrossRef]
  8. Moscato, V.; Sperlì, G. A survey about community detection over On-line Social and Heterogeneous Information Networks. Knowl. Based Syst. 2021, 224, 107112. [Google Scholar] [CrossRef]
  9. Yang, Y.; Shi, P.; Wang, Y.; He, K. Quadratic Optimization based Clique Expansion for overlapping community detection. Knowl. Based Syst. 2022, 247, 108760. [Google Scholar] [CrossRef]
  10. Sun, P.G.; Wu, X.; Quan, Y.; Miao, Q. Influence percolation method for overlapping community detection. Phys. Stat. Mech. Its Appl. 2022, 596, 127103. [Google Scholar] [CrossRef]
  11. Ullah, A.; Wang, B.; Sheng, J.; Long, J.; Khan, N.; Ejaz, M. A novel relevance-based information interaction model for community detection in complex networks. Expert Syst. Appl. 2022, 196, 116607. [Google Scholar] [CrossRef]
  12. Su, X.; Xue, S.; Liu, F.; Wu, J.; Yang, J.; Zhou, C.; Hu, W.; Paris, C.; Nepal, S.; Jin, D.; et al. A Comprehensive Survey on Community Detection With Deep Learning. IEEE Trans. Neural Netw. Learn. Syst. 2022. [Google Scholar] [CrossRef] [PubMed]
  13. Zarezadeh, M.; Nourani, E.; Bouyer, A. DPNLP: Distance based peripheral nodes label propagation algorithm for community detection in social networks. World Wide Web 2021, 25, 73–98. [Google Scholar] [CrossRef]
  14. Girvan, M.; Newman, M.E. Community structure in social and biological networks. Proc. Natl. Acad. Sci. USA 2002, 99, 7821–7826. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  15. Lee, C.; Reid, F.; McDaid, A.; Hurley, N. Seeding for pervasively overlapping communities. Phys. Rev. Stat. Nonlinear Soft Matter Phys. 2011, 83, 066107. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  16. Whang, J.J.; Gleich, D.F.; Dhillon, I.S. Overlapping Community Detection Using Neighborhood-Inflated Seed Expansion. IEEE Trans. Knowl. Data Eng. 2016, 28, 1272–1284. [Google Scholar] [CrossRef]
  17. Clauset, A. Finding local community structure in networks. Phys. Rev. E 2005, 72, 026132. [Google Scholar] [CrossRef] [Green Version]
  18. Luo, F.; Wang, J.Z.; Promislow, E. Exploring Local Community Structures in Large Networks. In Proceedings of the 2006 IEEE/WIC/ACM International Conference on Web Intelligence (WI 2006 Main Conference Proceedings) (WI’06), Hong Kong, China, 18–22 December 2006; pp. 233–239. [Google Scholar] [CrossRef]
  19. Bagrow, J.P. Evaluating local community methods in networks. J. Stat. Mech. Theory Exp. 2008, 2008, P05001. [Google Scholar] [CrossRef] [Green Version]
  20. Luo, W.; Zhang, D.; Jiang, H.; Ni, L.; Hu, Y. Local Community Detection With the Dynamic Membership Function. IEEE Trans. Fuzzy Syst. 2018, 26, 3136–3150. [Google Scholar] [CrossRef]
  21. Yang, J.; Leskovec, J. Defining and evaluating network communities based on ground-truth. Knowl. Inf. Syst. 2015, 42, 181–213. [Google Scholar] [CrossRef] [Green Version]
  22. Ni, L.; Luo, W.; Zhu, W.; Hua, B. Local Overlapping Community Detection. ACM Trans. Knowl. Discov. Data 2019, 14, 1–25. [Google Scholar] [CrossRef]
  23. Luo, D.; Bian, Y.; Yan, Y.; Liu, X.; Huan, J.; Zhang, X. Local Community Detection in Multiple Networks. In Proceedings of the 26th ACM SIGKDD International Conference on Knowledge Discovery, Virtual Event, 6–10 July 2020; Data Mining. Association for Computing Machinery: New York, NY, USA, 2020; pp. 266–274. [Google Scholar] [CrossRef]
  24. Luo, W.; Zhang, D.; Ni, L.; Lu, N. Multiscale Local Community Detection in Social Networks. IEEE Trans. Knowl. Data Eng. 2021, 33, 1102–1112. [Google Scholar] [CrossRef]
  25. Lyu, C.; Shi, Y.; Sun, L. A Novel Local Community Detection Method Using Evolutionary Computation. IEEE Trans. Cybern. 2021, 51, 3348–3360. [Google Scholar] [CrossRef] [PubMed]
  26. Luo, W.; Lu, N.; Ni, L.; Zhu, W.; Ding, W. Local community detection by the nearest nodes with greater centrality. Inf. Sci. 2020, 517, 377–392. [Google Scholar] [CrossRef]
  27. Bian, Y.; Luo, D.; Yan, Y.; Cheng, W.; Wang, W.; Zhang, X. Memory-based random walk for multi-query local community detection. Knowl. Inf. Syst. 2020, 62, 2067–2101. [Google Scholar] [CrossRef]
  28. Moradi, F.; Olovsson, T.; Tsigas, P. A local seed selection algorithm for overlapping community detection. In Proceedings of the 2014 IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining (ASONAM 2014), Beijing, China, 17–20 August 2014; pp. 1–8. [Google Scholar] [CrossRef] [Green Version]
  29. Li, Y.; He, K.; Kloster, K.; Bindel, D.; Hopcroft, J. Local Spectral Clustering for Overlapping Community Detection. ACM Trans. Knowl. Discov. Data 2018, 12, 1–27. [Google Scholar] [CrossRef]
  30. Chen, Q.; Wu, T.T.; Fang, M. Detecting local community structures in complex networks based on local degree central nodes. Phys. Stat. Mech. Its Appl. 2013, 392, 529–537. [Google Scholar] [CrossRef]
  31. Sun, Z.; Sun, Y.; Chang, X.; Wang, Q.; Yan, X.; Pan, Z.; Li, Z.P. Community detection based on the Matthew effect. Knowl. Based Syst. 2020, 205, 106256. [Google Scholar] [CrossRef]
  32. Ahajjam, S.; El Haddad, M.; Badir, H. A new scalable leader-community detection approach for community detection in social networks. Soc. Netw. 2018, 54, 41–49. [Google Scholar] [CrossRef]
  33. Belfin, R.V.; Grace Mary Kanaga, E. Parallel seed selection method for overlapping community detection in social network. Scalable Comput. 2018, 19, 375–385. [Google Scholar] [CrossRef]
  34. Cheng, J.; Zhang, W.; Yang, H.; Su, X.; Ma, T.; Chen, X. A Seed-Expanding Method Based on TOPSIS for Community Detection in Complex Networks. Complexity 2020, 2020, 9017239. [Google Scholar] [CrossRef]
  35. Berahmand, K.; Bouyer, A.; Vasighi, M. Community Detection in Complex Networks by Detecting and Expanding Core Nodes Through Extended Local Similarity of Nodes. IEEE Trans. Comput. Soc. Syst. 2018, 5, 1021–1033. [Google Scholar] [CrossRef]
  36. Ma, T.; Liu, Q.; Cao, J.; Tian, Y.; Al-Dhelaan, A.; Al-Rodhaan, M. LGIEM: Global and local node influence based community detection. Future Gener. Comput. Syst. 2020, 105, 533–546. [Google Scholar] [CrossRef]
  37. Gleich, D.F.; Seshadhri, C. Vertex Neighborhoods, Low Conductance Cuts, and Good Seeds for Local Community Methods. In Proceedings of the 18th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Beijing, China, 12–16 August 2012; Association for Computing Machinery: New York, NY, USA, 2012; pp. 597–605. [Google Scholar] [CrossRef]
  38. Ding, X.; Zhang, J.; Yang, J. A robust two-stage algorithm for local community detection. Knowl. Based Syst. 2018, 152, 188–199. [Google Scholar] [CrossRef]
  39. Ding, X.; Yang, H.; Zhang, J.; Yang, J.; Xiang, X. CEO: Identifying Overlapping Communities via Construction, Expansion and Optimization. Inf. Sci. 2022, 596, 93–118. [Google Scholar] [CrossRef]
  40. Palazuelos, C.; Zorrilla, M. FRINGE: A New Approach to the Detection of Overlapping Communities in Graphs. In Proceedings of the Computational Science and Its Applications—ICCSA 2011, Santander, Spain, 20–23 June 2011; Murgante, B., Gervasi, O., Iglesias, A., Taniar, D., Apduhan, B.O., Eds.; Springer: Berlin/Heidelberg, Germany, 2011; pp. 638–653. [Google Scholar]
  41. Luo, W.; Yan, Z.; Bu, C.; Zhang, D. Community Detection by Fuzzy Relations. IEEE Trans. Emerg. Top. Comput. 2020, 8, 478–492. [Google Scholar] [CrossRef]
  42. Zhang, J.; Ding, X.; Yang, J. Revealing the role of node similarity and community merging in community detection. Knowl. Based Syst. 2019, 165, 407–419. [Google Scholar] [CrossRef]
  43. Xu, X.; Yuruk, N.; Feng, Z.; Schweiger, T.A.J. SCAN: A Structural Clustering Algorithm for Networks. In Proceedings of the 13th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, San Jose, CA, USA, 12–15 August 2007; Association for Computing Machinery: New York, NY, USA, 2007; pp. 824–833. [Google Scholar] [CrossRef]
  44. Bai, X.; Yang, P.; Shi, X. An overlapping community detection algorithm based on density peaks. Neurocomputing 2017, 226, 7–15. [Google Scholar] [CrossRef]
  45. Wang, X.; Liu, G.; Li, J.; Nees, J.P. Locating Structural Centers: A Density-Based Clustering Method for Community Detection. PLoS ONE 2017, 12, e0169355. [Google Scholar] [CrossRef] [Green Version]
  46. Jiang, H.; Liu, Z.; Liu, C.; Su, Y.; Zhang, X. Community detection in complex networks with an ambiguous structure using central node based link prediction. Knowl. Based Syst. 2020, 195, 105626. [Google Scholar] [CrossRef]
  47. Ding, J.; He, X.; Yuan, J.; Chen, Y.; Jiang, B. Community detection by propagating the label of center. Phys. Stat. Mech. Its Appl. 2018, 503, 675–686. [Google Scholar] [CrossRef]
  48. Deng, Z.H.; Qiao, H.H.; Gao, M.Y.; Song, Q.; Gao, L. Complex network community detection method by improved density peaks model. Phys. Stat. Mech. Its Appl. 2019, 526, 121070. [Google Scholar] [CrossRef]
  49. Zhu, J.; Chen, B.; Zeng, Y. Community detection based on modularity and k-plexes. Inf. Sci. 2020, 513, 127–142. [Google Scholar] [CrossRef]
  50. Dhillon, I.S.; Guan, Y.; Kulis, B. Weighted Graph Cuts without Eigenvectors A Multilevel Approach. IEEE Trans. Pattern Anal. Mach. Intell. 2007, 29, 1944–1957. [Google Scholar] [CrossRef] [PubMed]
  51. Yang, Y.; Hao, F.; Pang, B.; Min, G.; Wu, Y. Dynamic Maximal Cliques Detection and Evolution Management in Social Internet of Things: A Formal Concept Analysis Approach. IEEE Trans. Netw. Sci. Eng. 2022, 9, 1020–1032. [Google Scholar] [CrossRef]
  52. Rodriguez, A.; Laio, A. Clustering by fast search and find of density peaks. Science 2014, 344, 1492–1496. [Google Scholar] [CrossRef] [Green Version]
  53. Hu, Y.; Hu, K.; Yang, B.; Zhang, N.; Gu, X. Voting Based Seeding Algorithm for Overlapping Community Detection. In Proceedings of the 2015 International Conference on Cyber-Enabled Distributed Computing and Knowledge Discovery, Xi’an, China, 17 September 2015; pp. 192–199. [Google Scholar] [CrossRef]
  54. Attal, J.P.; Malek, M.; Zolghadri, M. Overlapping Community Detection Using Core Label Propagation Algorithm and Belonging Functions. Appl. Intell. 2021, 51, 8067–8087. [Google Scholar] [CrossRef]
  55. Shang, R.; Zhang, W.; Zhang, J.; Feng, J.; Jiao, L. Local community detection based on higher-order structure and edge information. Phys. Stat. Mech. Its Appl. 2022, 587, 126513. [Google Scholar] [CrossRef]
  56. Andersen, R.; Chung, F.; Lang, K. Local Graph Partitioning using PageRank Vectors. In Proceedings of the 2006 47th Annual IEEE Symposium on Foundations of Computer Science (FOCS’06), Berkeley, CA, USA, 21–24 October 2006; pp. 475–486. [Google Scholar] [CrossRef]
  57. Staudt, C.L.; Marrakchi, Y.; Meyerhenke, H. Detecting communities around seed nodes in complex networks. In Proceedings of the 2014 IEEE International Conference on Big Data (Big Data), Washington, DC, USA, 27–30 October 2014; pp. 62–69. [Google Scholar] [CrossRef]
  58. Kloumann, I.M.; Kleinberg, J.M. Community Membership Identification from Small Seed Sets. In Proceedings of the 20th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Anchorage, AK, USA, 4–8 August 2019; Association for Computing Machinery: New York, NY, USA, 2014; pp. 1366–1375. [Google Scholar] [CrossRef] [Green Version]
  59. Hu, Y.; Yang, B.; Wong, H.S. A weighted local view method based on observation over ground truth for community detection. Inf. Sci. 2016, 355–356, 37–57. [Google Scholar] [CrossRef]
  60. Lancichinetti, A.; Fortunato, S.; Kertész, J. Detecting the overlapping and hierarchical community structure in complex networks. New J. Phys. 2009, 11, 033015. [Google Scholar] [CrossRef]
  61. Gregory, S. Fuzzy overlapping communities in networks. J. Stat. Mech. Theory Exp. 2011, 2011, P02017. [Google Scholar] [CrossRef] [Green Version]
  62. Yang, J.; Leskovec, J. Overlapping Community Detection at Scale: A Nonnegative Matrix Factorization Approach. In Proceedings of the Sixth ACM International Conference on Web Search and Data Mining, Rome, Italy, 4–8 February 2013; Association for Computing Machinery: New York, NY, USA, 2013; pp. 587–596. [Google Scholar] [CrossRef]
  63. Hu, Y.; Yang, B. Characterizing the structure of large real networks to improve community detection. Neural Comput. Appl. 2017, 28, 2321–2333. [Google Scholar] [CrossRef]
  64. Lusseau, D.; Schneider, K.; Boisseau, O.; Haase, P.; Slooten, E.; Dawson, S. The bottlenose dolphin community of Doubtful Sound features a large proportion of long-lasting associations. Behav. Ecol. Sociobiol. 2003, 54, 396–405. [Google Scholar] [CrossRef]
  65. Lancichinetti, A.; Fortunato, S. Benchmarks for testing community detection algorithms on directed and weighted graphs with overlapping communities. Phys. Rev. Stat. Nonlinear Soft Matter Phys. 2009, 80, 016118. [Google Scholar] [CrossRef] [PubMed] [Green Version]
Figure 1. A small network with two communities distinguished by color. Nodes 4 and 10 are good seeds for the two communities.
Figure 1. A small network with two communities distinguished by color. Nodes 4 and 10 are good seeds for the two communities.
Mathematics 10 02807 g001
Figure 2. Visualization of the communities resulting from different local seeding algorithms for the Karate network. The two ground-truth communities are distinguished by squares and triangles. Members of the same detected community are marked with one color, and overlapping members are indicated by circles with several colors corresponding to the communities to which they belong. White nodes do not belong to any community.
Figure 2. Visualization of the communities resulting from different local seeding algorithms for the Karate network. The two ground-truth communities are distinguished by squares and triangles. Members of the same detected community are marked with one color, and overlapping members are indicated by circles with several colors corresponding to the communities to which they belong. White nodes do not belong to any community.
Mathematics 10 02807 g002
Figure 3. Visualization of the communities resulting from different local seeding algorithms for the Dolphin network. The two ground-truth communities are distinguished by squares and triangles. Members of the same detected community are marked with one color, and the overlapping members are indicated by circles with several colors corresponding to the communities to which they belong. White nodes do not belong to any community.
Figure 3. Visualization of the communities resulting from different local seeding algorithms for the Dolphin network. The two ground-truth communities are distinguished by squares and triangles. Members of the same detected community are marked with one color, and the overlapping members are indicated by circles with several colors corresponding to the communities to which they belong. White nodes do not belong to any community.
Mathematics 10 02807 g003
Figure 4. Similarity of the detected communities resulting from different local seeding algorithms to the (top) ground-truth communities. The y-axis is the Jaccard similarity between ground-truth community and the corresponding detected community, and the x-axis depicts ground-truth community ranked by similarity.
Figure 4. Similarity of the detected communities resulting from different local seeding algorithms to the (top) ground-truth communities. The y-axis is the Jaccard similarity between ground-truth community and the corresponding detected community, and the x-axis depicts ground-truth community ranked by similarity.
Mathematics 10 02807 g004
Figure 5. The relative running times of seeding, seed expansion and merging by different local seeding algorithms.
Figure 5. The relative running times of seeding, seed expansion and merging by different local seeding algorithms.
Mathematics 10 02807 g005
Figure 6. The coverage obtained by different local seeding algorithms over different networks.
Figure 6. The coverage obtained by different local seeding algorithms over different networks.
Mathematics 10 02807 g006
Figure 7. The F1-score, Nvi, modularity and conductance of the communities detected by different local seeding algorithms.
Figure 7. The F1-score, Nvi, modularity and conductance of the communities detected by different local seeding algorithms.
Mathematics 10 02807 g007
Table 2. The classes, abbreviations and time complexities of different local seeding algorithms.
Table 2. The classes, abbreviations and time complexities of different local seeding algorithms.
ClassCentrality MetricAbbreviation of the Local Seeding AlgorithmTime Complexity
CentralitySeeding
Degree-basedDegreeLM-D O ( 1 ) O ( m )
Extended degree (Equation (1))LM-EXTD
Accumulated degree (Equation (2))LM-ACCD
Denseness-basedNode mass (Equation (3))LM-NM O ( d m a x m )
Conductance of egonet (Equation (4))LM-CE O ( d m a x m )
Density of egonet (Equation (5))LM-DE O ( d m a x m )
Local clustering coefficient (Equation (6))LM-LCC O ( d m a x m )
Core-basedCore dominance with cosine index (Equations (7) and (8))LM-COREDC O ( d m a x | E | )
Core dominance with Jaccard index (Equations (7) and (9))LM-COREDJ O ( d m a x m )
Core dominance with Pearson correlation coefficient (Equations (7) and (10))LM-COREDP O ( d m a x m )
Core dominance with preference attachment (Equations (7) and (11))LM-SPA O ( m )
Table 3. The information of real networks. The columns “Nodes”, “Edges” and “Coms“ report the numbers of nodes, edges and ground-truth communities, respectively, and the “Ref” reports the references of these networks.
Table 3. The information of real networks. The columns “Nodes”, “Edges” and “Coms“ report the numbers of nodes, edges and ground-truth communities, respectively, and the “Ref” reports the references of these networks.
NetworksNodesEdgesComsRef
Karate34782[63]
Dolphin621592[64]
Football11561312[14]
Amazon334,863925,872151,039[21]
DBLP317,0801,049,86613,477[21]
YouTube1,134,8902,987,6248385[21]
LJ3,997,96234,681,189287,512[21]
Orkut3,072,441117,185,0835,043,976[21]
Table 4. The number of seeds (with the fraction in parentheses for large-scale networks) chosen by different algorithms.
Table 4. The number of seeds (with the fraction in parentheses for large-scale networks) chosen by different algorithms.
AlgorithmsKarateDolphinFootballAmazonDBLPYouTubeLJOrkut
Networks
LM-D241215,461273514,8288175162
LM-EXTD223653745910037298
LM-ACCD22362192815703261548
LM-NM24813,538262032057345205
LM-CE46834,87234,039349,046562,93822,744
LM-ED1717913,4746109,412319,4831,195,035470,381
LM-LCC16119107,460107,974310,884939,192326,195
LM-COREDC24716,372405827,36922,186625
LM-COREDJ24618,822837737,83943,5481427
LM-COREDP45724,1928662207,103105,243965
LM-COREDPA23388327991701119718
Table 5. The coverage of the resulting communities by different seeding algorithms.
Table 5. The coverage of the resulting communities by different seeding algorithms.
AlgorithmsKarateDolphinFootballAmazonDBLPYouTubeLJOrkut
Networks
LM-D0.8530.9191.0000.6200.1070.1040.0250.001
LM-EXTD0.8530.9680.2350.4030.0230.0100.004 7.81 × 10 6
LM-ACCD0.8530.9680.2350.3990.0170.0060.0020.001
LM-NM0.8530.9680.9480.5860.0990.0280.0330.001
LM-CE0.9411.0001.0000.7740.5640.6910.5990.094
LM-ED0.9711.0000.9910.9860.9700.8750.9500.624
LM-LCC0.9411.0000.9910.9660.9630.8260.9130.551
LM-COREDC0.8530.9680.8090.6340.1470.1660.0770.004
LM-COREDJ0.8530.9680.7040.6390.2490.2060.1340.009
LM-COREDP0.8530.9030.8520.6540.1740.3140.1110.005
LM-COREDPA0.8530.9680.2350.4870.0430.0180.007 3.03 × 10 5
Table 6. The F1-score and Nvi of communities resulting from different local seeding algorithms.
Table 6. The F1-score and Nvi of communities resulting from different local seeding algorithms.
AlgorithmsKarateDolphinFootballAmazonDBLPYouTubeLJOrkut
Networks
F1-score
LM-D0.8930.9440.7620.2590.2180.0120.0620.064
LM-EXTD0.8930.9630.5650.1890.2500.0040.1340.066
LM-ACCD0.8930.9520.5650.1760.2560.0040.1410.143
LM-NM0.8930.9630.6970.2490.2420.0220.1100.098
LM-CE0.8190.9760.6370.3200.3200.1340.1520.165
LM-ED0.7950.9100.6530.2720.3260.1240.1680.216
LM-LCC0.7610.9240.6530.2920.3270.1250.1670.209
LM-COREDC0.8930.9630.7040.2770.2390.0280.0770.123
LM-COREDJ0.8930.9630.6760.2950.2750.0500.0870.171
LM-COREDP0.7380.8010.6010.2920.2280.0580.0670.133
LM-COREDPA0.8930.9460.5650.2100.2450.0050.1300.083
Nvi
LM-D0.5350.6890.6870.2210.4090.4530.5220.499
LM-EXTD0.5350.7670.8230.2980.6070.5000.5910.500
LM-ACCD0.5350.7290.8230.3010.6250.5010.5910.505
LM-NM0.5350.7670.5350.2350.4510.4770.5310.508
LM-CE0.5260.8330.4560.2110.1660.0190.0480.433
LM-ED0.4220.7010.4930.1450.1050.0100.0120.087
LM-LCC0.3040.7650.4930.1690.1070.0160.0140.116
LM-COREDC0.5350.7670.6010.2270.3820.3810.4310.509
LM-COREDJ0.5350.7670.6320.2300.2960.3000.3360.521
LM-COREDP0.4650.5410.4750.2240.3540.2440.3830.519
LM-COREDPA0.5350.6920.8230.2600.5390.4980.5840.500
The best results are highlighted using bold.
Table 7. The modularity and average conductance of communities resulting from different local seeding algorithms.
Table 7. The modularity and average conductance of communities resulting from different local seeding algorithms.
AlgorithmsKarateDolphinFootballAmazonDBLPYouTubeLJOrkut
Networks
Modularity
LM-D0.2050.1720.0370.2550.4030.2860.364−0.068
LM-EXTD0.2050.1550.2620.2560.4500.2230.398−0.034
LM-ACCD0.2050.1510.2620.2320.4460.2010.339−0.300
LM-NM0.2050.1550.2620.3160.5000.2920.424−0.121
LM-CE0.1890.1510.0800.2800.4020.1450.084−0.151
LM-ED0.1600.0910.1460.1160.1530.0790.019−0.242
LM-LCC0.1770.0950.1460.1780.1600.1250.026−0.253
LM-COREDC0.2050.1550.2580.2960.4580.2690.323−0.118
LM-COREDJ0.2050.1550.2790.3270.5150.2580.304−0.088
LM-COREDP0.3760.1500.2780.3160.5060.2260.279−0.065
LM-COREDPA0.2050.1460.2620.2470.3950.2160.370−0.049
Average Conductance
LM-D0.1980.1230.2700.2390.1950.2110.2120.925
LM-EXTD0.1980.0810.3600.1930.1350.1090.1190.985
LM-ACCD0.1980.0940.3600.2100.1350.1050.1560.885
LM-NM0.1980.0810.2760.2070.1620.2710.2170.898
LM-CE0.2910.0710.2850.2910.3700.5190.6520.786
LM-ED0.3660.1460.3140.3800.4810.6370.7510.901
LM-LCC0.5250.1300.3140.3220.4740.5520.7230.891
LM-COREDC0.1980.0810.3010.2240.1850.2950.3050.822
LM-COREDJ0.1980.0810.3040.2290.2210.3440.3740.730
LM-COREDP0.3120.1980.2460.2410.2010.3770.3890.762
LM-COREDPA0.1980.1230.3600.2130.1630.1200.1480.981
The best results are highlighted using bold.
Table 8. The best and second best ranked algorithms.
Table 8. The best and second best ranked algorithms.
NetworkBest Ranked AlgorithmSecond Best Ranked Algorithm
NameClassNameClass
KarateLM-D (EXTD, ACCD)degree-basedLM-CEdenseness-based
LM-NMdenseness-based
LM-COREDC (J, PA)core-based
DolphinLM-CEdenseness-basedLM-EXTDdegree-based
LM-NMdenseness-based
LM-COREDC (J)core-based
FootballLM-Ddegree-basedLM-NMdenseness-based
AmazonLM-COREDJcore-basedLN-NMdenseness-based
DBLPLM-EXTD (ACCD)degree-basedLN-NMdenseness-based
LM-COREDJcore-based
YouTubeLM-NMdenseness-basedLM-Ddegree-based
LJLM-EXTDdegree-basedLM-COREDPAcore-based
OrkutLM-COREDJcore-basedLM-COREDPcore-based
Table 9. The parameter settings for the synthetic networks.
Table 9. The parameter settings for the synthetic networks.
ParameterValue
Number of nodes2000
Average degree20
Maximum degree120
Exponent for the degree distribution2
Exponent for the community size distribution1
Number of overlapping nodes200
Number of memberships of the overlapping nodes3
Community size range[60, 100]
Mixing parameter[0, 0.8] with 0.1 interval
Table 10. The number of seeds chosen by different algorithms.
Table 10. The number of seeds chosen by different algorithms.
SN0SN1SN2SN3SN4SN5SN6SN7SN8
LM-D455832433
LM-EXTD425331344
LM-ACCD423431243
LM-NM814432334
LM-CE291912877112346
LM-DE751705630591618557534510491
LM-LCC734672576515514401357283296
LM-COERDC1226454325
LM-COREDJ1116434354
LM-COREDP2323133354
LM-COREDPA1634343444
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Hu, Y.; Yang, B.; Duo, B.; Zhu, X. Exhaustive Exploitation of Local Seeding Algorithms for Community Detection in a Unified Manner. Mathematics 2022, 10, 2807. https://doi.org/10.3390/math10152807

AMA Style

Hu Y, Yang B, Duo B, Zhu X. Exhaustive Exploitation of Local Seeding Algorithms for Community Detection in a Unified Manner. Mathematics. 2022; 10(15):2807. https://doi.org/10.3390/math10152807

Chicago/Turabian Style

Hu, Yanmei, Bo Yang, Bin Duo, and Xing Zhu. 2022. "Exhaustive Exploitation of Local Seeding Algorithms for Community Detection in a Unified Manner" Mathematics 10, no. 15: 2807. https://doi.org/10.3390/math10152807

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

Article Metrics

Back to TopTop