www.nature.com/scientificreports

Correction: Publisher Correction OPEN Community Detection in Complex Networks via Conductance Zhenqi Lu1, Johan Wahlström2 & Arye Nehorai1

Network science plays a central role in understanding and modeling complex systems in many areas Received: 8 November 2017 including physics, sociology, biology, computer science, economics, politics, and neuroscience. Accepted: 20 March 2018 One of the most important features of networks is community structure, i.e., clustering of nodes Published online: 13 April 2018 that are locally densely interconnected. Communities reveal the hierarchical organization of nodes, and detecting communities is of great importance in the study of complex systems. Most existing community-detection methods consider low-order connection patterns at the level of individual links. But high-order connection patterns, at the level of small subnetworks, are generally not considered. In this paper, we develop a novel community-detection method based on , i.e., local complete subnetworks. The proposed method overcomes the defciencies of previous similar community- detection methods by considering the mathematical properties of cliques. We apply the proposed method to computer-generated graphs and real-world network datasets. When applied to networks with known community structure, the proposed method detects the structure with high fdelity and sensitivity. When applied to networks with no a priori information regarding community structure, the proposed method yields insightful results revealing the organization of these complex networks. We also show that the proposed method is guaranteed to detect near-optimal clusters in the bipartition case.

Networks are a standard representation of complex interactions among multiple objects, and network analysis has become a crucial part of understanding the features of a variety of complex systems1–10. One way to analyze net- works is to identify communities, mesoscopic structures consisting of groups of nodes that are relatively densely connected to each other but sparsely connected to other dense groups in the network11. Communities, also called clusters or modules, mark groups of nodes which could, for example, share common properties, exchange infor- mation frequently, or have similar functions within the network12. Te existence of communities is evident in many networked systems from a great many areas, including physics, sociology, biology, computer science, engi- neering, economics, politics, and neuroscience13–20. Community detection is important for many reasons. It allows classifcation of the functions of nodes in accordance with their structural positions in their communities21–23. It reveals the hierarchical organization that exists in many real-world networks24. Moreover, it improves the performance and efciency of processing, ana- lyzing, and storing networked data25,26. Communities also have concrete applications. In social networks, com- munities represent groups of individuals with mutual interests and backgrounds, and imply patterns of real social groupings15. In purchase networks, communities represent groups of customers with similar purchase habits, and can help establish efcient recommendation systems26. In citation networks, communities represent groups of related papers in one research direction, and identify scholars sharing research interests27. In brain networks, communities represent groups of nodes that are intricately interconnected and that could perform local compu- tations, and they give insights into structural units of the brain28. Te mathematical synonym of networks is graphs, and in the context of graph theory, one of the mathemati- cal formalizations of community detection is graph partitioning. Guided by spectral graph theory29, the method of spectral graph partitioning arose by relating network properties to the spectrum of the Laplacian matrix30. Te earliest method in this category minimized connections between diferent communities31,32. In practice, this optimization problem can be efciently solved, but it favors non-optimal solutions involving cutting a small part from the graph. One way to circumvent this drawback is to introduce balancing factors to the objective functions in order to enforce a reasonably large size for each community33,34. However, introducing balancing factors makes

1Preston M. Green Department of Electrical and Systems Engineering, Washington University in St. Louis, St. Louis, MO, USA. 2Department of Computer Science, University of Oxford, Oxford, United Kingdom. Correspondence and requests for materials should be addressed to A.N. (email: [email protected])

SCiENtifiC REPOrTS | (2018) 8:5982 | DOI:10.1038/s41598-018-23932-z 1 www.nature.com/scientificreports/

these optimization problems NP-hard35. Hence relaxed versions of these problems are solved by taking advantage of the properties of the Laplacian matrix. Despite thousands of publications in the literature on spectral partitioning, these methods are constrained to conventional graph-based models. Tese models involve a set of vertices, which represent objects of interest, and a set of edges, which encode the existence or non-existence of a relationship between each pair of objects. However, in many real-world systems, the complex and rich nature of systems cannot be captured by such dyadic relationships. More importantly, recent computer innovations have greatly increased the size of the real networks that one can potentially handle. As a result, the way to process and understand graphs has been changed, and polyadic interactions are becoming more and more important. In particular, a community is intuitively a cohesive group of vertices that are “more densely” connected within the community than across communities11. Te precise defnition and characterization of “more densely” relies on polyadic interactions among multiple vertices. In order to quantitatively characterize polyadic structures, we employ the high-order structures of cliques, defned to be local complete subgraphs. In the context of networks, cliques are groups of objects that rapidly and efectively interact. Tis paper presents a graph-partitioning method that identifes clusters of cliques. One line of related work is the method of k-clique percolation36,37. Tis method defnes the k-clique com- munity to be the union of “adjacent” k-cliques, which by defnition share k − 1 vertices, where k is any positive integer. However, this defnition is too stringent because it rules out other possible communities that are not so well-connected. Its performance also relies heavily on the choice of k: A small k leads to a single giant community, and a large k leads to multiple small and possibly distant communities. In addition, this defnition includes top- ological cavities38, which enclose holes in networks and mark local lacks of connectivity. However, this feature is not an expected property of communities. In a recent paper, Benson et al. devised a community-detection method based on high-order connectivity patterns called network motifs39,40, and proposed a generalized framework for identifying clusters of network motifs41. Cliques are certainly one special kind of network motif, and Benson et al. provide numerical simulations for applying this framework to cliques. However, this framework has several drawbacks. First, the framework fails to consider the nested nature of cliques and so sufers from unnecessary computational cost, since it needs to take into consideration non-maximal cliques. Second, the method requires pre-specifcation of the sizes of the cliques involved, instead of considering all clique sizes occurring in the network. Tird, the conductance function merely counts the number of cliques and ignores other properties infuenced by partitions. Lastly, the perfor- mance guarantee works only for 3-cliques. We overcome all these drawbacks by designing a novel conductance function specifcally for cliques. In this paper, we propose a novel community-detection method that minimizes a new objective function, called the clique conductance function. We encode in this objective function the number and sizes of cliques, and the numbers of edges in the cliques. Finding a partition that exactly minimizes the clique conductance is computationally intractable. Tus we extend the spectral graph partitioning methodology, and devise a com- putationally tractable solution that approximately minimizes the clique conductance. In addition, we derive a performance guarantee for the bipartition case, showing that the resulting bipartition is near-optimal. Finally, we apply the proposed method to computer-generated graphs and real-world network datasets. When applied to networks with known community structure, the proposed method achieves excellent agreement with the ground-truth communities. When applied to networks with no a priori information regarding community structure, the proposed method yields insightful results that help us understand the structures embedded in these complex networks. Methods In this section, we describe our proposed graph-partitioning method. We begin by introducing several graph nota- tions, and then state the formulation of our proposed graph-partitioning method based on clique-conductance minimization. We conclude this section by proposing a computationally efcient algorithm that approximately solves the optimization problem.

Graph Notations. An undirected weighted graph  is an ordered triplet (,VE,)π consisting of a set of verti- ces  =…{,vv1 ,}n , a set of edges EV⊂×V satisfying (,uv) ∈  if and only if (,vu) ∈  for all u, v ∈ , and a + weight function π:{×→ ∪ 0} satisfying π() > 0, π()VVE×− = 0, and π(u, v) = π(v, u) for all u, v ∈ . If the weight function π in addition satisfies π() = 1, then  is an undirected binary graph. The weighted adjacency matrix W of the graph is defned as W(i, j) := π(vi, vj). Since  is undirected, we have W = T W . Te degree of a vertex vi is defned as di :(=∑u∈π uv,)i , and the degree matrix D is a diagonal matrix with d1, …, dn as diagonal entries. Te Laplacian matrix L of the graph is defned as L := D − W. A graph  is said to have no loops if π(u, u) = 0 for all u ∈ . Formally, a k-clique is a subgraph consisting of k nodes with all pairwise connections, where k is any positive integer. It naturally follows from the defnition that any subgraph of a clique is also a clique, and such a subgraph is called a face. We call this feature the nested nature of cliques. A maximal clique is a clique that is not a face. Due to the nested nature of cliques, the maximal cliques of a graph contain all the clique information. Te number of vertices constituting a clique σ is called the size of a clique and is denoted as ω(σ). In this paper, we use k to represent the collection of all maximal k-cliques, and  = ⋃kk to represent the collection of all maximal cliques.

Clique Conductance Minimization. We now state the formulation of our proposed graph-partitioning method. Intuitively, the graph-partitioning problem based on cliques can be described as follows: We wish to

SCiENtifiC REPOrTS | (2018) 8:5982 | DOI:10.1038/s41598-018-23932-z 2 www.nature.com/scientificreports/

fnd a partition of the graph, such that cliques between diferent groups are few and have small sizes (which means that vertices in diferent clusters share few high-order connections), and cliques within each group have large sizes (which means that vertices within one cluster are connected in high-order fashion). Formally, sup- pose that GV= (,E,)π is an undirected binary graph with no loops. Given a positive integer m > 1, we wish to fnd a partition (A1, …, Am) that satisfes Ai∩Aj = ∅ for any i ≠ j and ⋃iiA = , and that minimizes m ψ(,AA1 …=,)m :c∑ ut (,AAii), i=1 (1) where

cut(AA,)¯ :(=∈∑∑ωσ)( uA,)vA∈ , σσ∈∈ uv, (2) where is the truth-value indicator function. Conceptually, the cut function cut(AA,) measures how severely maximal cliques are infuenced by the partition (,AA). Te cut function considers both the number and sizes of maximal cliques that are cut by the partition, and also the number of edges in each maximal clique that are cut by the partition. Unfortunately, in practice the solution of this approach ofen yields extreme cases separat- ing the vertex with the lowest degree from the rest of the graph, similar to phenomena observed in minimizing conventional cut functions31. To circumvent this problem, we introduce a balancing factor  =  ∈ vol(Au): ∑∑ωσ()  A), σσ∈∈ u  (3) which conceptually measures the size of a cluster A, and propose to minimize the clique conductance function defned as

m cut(AAii,) φ(,AA1 …=,)m : ∑ . i=1 min(vol(AAii), vol( )) (4) We note that this objective function is formulated in a similar way to normalized spectral partitioning34. However, introducing balancing factors causes the computationally tractable problem of minimizing equation (1) to become NP-hard35. Following the idea of spectral graph partitioning30, we next reformulate our optimization problem and seek a computationally tractable solution.

Partitioning Algorithm. We introduce a new weighted graph, which we call the induced clique graph, to encode the maximal-clique information of . The induced clique graph of GV= (,E,)π is an undirected weighted graph GVcc= (,E,)π , where the weight function πc is defned as

πωc(,uv):=.∑∑ ()σ σσ∈∈uv, (5)

By defnition, πc(u, v) is the sum of the sizes of the maximal cliques that vertex u and vertex v both engage. Intuitively, πc measures how densely two vertices are connected in . We denote by Wc, Dc, Lc the corresponding adjacency matrix, degree matrix, and Laplacian matrix, respectively. Following this spirit, the graph-partitioning problem on an undirected binary graph  can be transformed and implemented as a graph-partitioning problem on a weighted graph c. Notice that a partition (A1, …, Am) on the original network  induces a partition on the induced clique graph c. To measure conductance on this weighted graph, we recall the traditional conductance function on weighted graphs30, defned as

m cut(ciAA,)i φcm(,AA1 …=,): ∑ , i=1 min(vol(ciAA), vol(ci)) (6) where

cut(c AA,):(= ∑ πc uv,) uA∈∈,vA (7) is the total weight of edges cut, and

vol(c Au):= ∑ πc(,v) uA∈∈,v  (8) is the total connection from vertices in A to all vertices in the graph. Te next proposition relates the traditional conductance function in equation (6) to the clique conductance function in equation (4).

SCiENtifiC REPOrTS | (2018) 8:5982 | DOI:10.1038/s41598-018-23932-z 3 www.nature.com/scientificreports/

Algorithm 1. Graph partitioning via clique conductance minimization.

Proposition 1. Given any undirected binary graph GV= (,E,)π , for any subset A ⊂ , we have

cut(AA,)= cut(c AA,), (9)

vol(AA)v=.olc() (10) Te proof of Proposition 1 is given later. A straightforward consequence of Proposition 1 is that the conduct- ance functions as shown in equations (4) and (6) are equal.

Corollary 2. Given any undirected binary graph GV= (,E,)π , for any natural number m > 1 and any partition (A1, …, Am), we have

φφ(,AA11…=,)mc(,AA….,)m (11) Corollary 2 shows that the clique conductance minimization problem,

minimize φ(,AA1 …,)m , (,AA1 …,)m (12) is equivalent to the conductance minimization problem on the induced weighted graph,

minimize φcm(,AA1 ….,) (,AA1 …,)m (13) Solving this minimization problem directly can be computationally intractable35. One way to circumvent this issue is to solve a relaxed version of this problem by employing normalized spectral partitioning30,34,42. Tus our partitioning algorithm consists of three steps. First the maximal cliques are computed using the Bron-Kerbosch 43–46 42 algorithm . Ten the induced clique graph c is formed. Finally, normalized spectral partitioning is applied to achieve a partition of the graph . Our partitioning algorithm is stated in detail in Algorithm 1. As shown in Algorithm 1, we use two diferent clustering methods for m = 2 and m > 2 when applying normalized spectral partitioning, because for m = 2 the Cheeger inequality ensures that this clustering method produces a near-optimal partition, as shown later. For the general case of m > 2, there are no similar results providing per- formance guarantees. Among the several spectral partitioning methods30, we choose normalized spectral parti- tioning42 because of the construction of the clique conductance function. A recent work provides a performance guarantee for the general case, but the proof is constrained to regular binary graphs and is based on a new and untested clustering method47. We choose to keep using the k-means clustering method for its ease of implemen- tation and successful empirical results. Empirical Results In this section we present a number of numerical experiments with the proposed method. We frst perform experiments on computer-generated graphs, and then apply the proposed method to real-world networks with known community structures. In each case, we fnd that the proposed method almost perfectly detects commu- nity structures indicated by network connectivity.

Benchmarks. We use benchmarks to compare the proposed method to the motif-conductance method41, the normalized spectral partitioning34, and greedy methods, including the Louvain method48, the Ravasz method49, and the fast modularity maximization method50–52. Benchmarks are computer-generated graphs whose commu- nity structure is known. To compare two partitions 12, of the same graph, we use the normalized mutual infor- mation53,54, defned as

SCiENtifiC REPOrTS | (2018) 8:5982 | DOI:10.1038/s41598-018-23932-z 4 www.nature.com/scientificreports/

Figure 1. Normalized mutual information of diferent community-detection methods on (a) the Girvan- Newman benchmark, (b) the Lancichinetti-Fortunato-Radicchi benchmark (using the same legend as subfgure (a)).

pc(,12c ) ∑cc∈∈CC, pc(,12c )log 1122 pc()12pc() In(,CC12):= . 1 HC()+ 1 HC() 2 1 2 2 (14)

Here, p(c) is the probability that a randomly chosen vertex belongs to community c, p(c1, c2) is the probability that a randomly chosen vertex belongs to both community c1 and community c2. Also, HC() is the Shannon entropy, defned as HC():(=−∑pc)log pc(). c∈C (15) Intuitively, the normalized mutual information measures the similarity between two partitions. If the two partitions 12, are identical, then In(,12)1= , and if the two partitions are independent of each other, then In(,12)0= . In the following experiments, 1 is the ground-truth partition given by the benchmark, and 2 is the partition predicted by a community-detection method. Te frst benchmark we use is the Girvan-Newman (GN) benchmark55. Here, each graph is composed of 128 vertices and is partitioned into 4 communities of size 32. Each vertex is connected to approximately 16 others. For each vertex, a fraction zout of 16 connections is made to randomly chosen vertices of other communities, and the remaining connections are made to randomly chosen members of the same community. When zout is a half-integer k + 1 , half of the vertices have k inter-community connections and the other half have k + 1 2 inter-community connections. Te GN benchmark produces graphs with known community structures, which are essentially random in all other aspects. Te results of diferent community-detection methods compared against the GN benchmark are shown in Fig. 1a. Each curve is averaged over 1000 realizations. As can be seen, the proposed method achieves com- plete mutual information when zout ≤ 7, detecting virtually correct communities. Te proposed method yields almost zero mutual information when zout ≥ 9, where each vertex has more inter-community connections than intra-community connections. Te transition between these two regions is swif and sharp. In other words, the proposed method performs almost perfectly up to the point where each vertex has as many inter-community con- nections as intra-community connections. Tis performance is almost optimal, because the ground-truth com- munity structure diminishes when each vertex has more inter-community connections than intra-community connections. In this situation, the community structure represented by graph connections deviates from the ground-truth community structure, and so these two sets of clusters share little mutual information. Te normal- ized spectral partitioning and the motif-conductance method using 3-cliques as the network motif perform as well as the proposed method. But when 4-cliques and 5-cliques are chosen as network motifs, the performance of the motif-conductance method degrades severely. Tis degradation shows that the motif-conductance method heavily relies on the choice of, and prior knowledge about, which cliques are overexpressed in a graph. Finding this knowledge and determining this choice necessarily involve a brute-force search over all subgraphs of certain sizes. Among the greedy methods, the Louvain method and the fast modularity method ofer the best perfor- mance, but compared to the proposed method, the accuracies of both methods are lower when zout ≤ 7. Te GN benchmark generates a random graph where all vertices have approximately same degrees and all communities have an identical size. However, many real-world networks are scale-free56, with node degrees and community sizes following the power-law distribution. As a result, a community-detection method that performs well on the GN benchmark might fail on real-world networks. To ensure that the proposed method does not suf- fer from this limitation, we use the Lancichinetti-Fortunato-Radicchi (LFR) benchmark as a second benchmark57, where both vertex degrees and ground-truth community sizes follow the power-law distribution. In this bench- mark, each graph is composed of n vertices and is partitioned into m communities. Each vertex is given a degree following a power-law distribution with exponent γ, and each community is given a size following a power-law distribution with exponent β. Te minimal and maximal values of degrees, kmin, kmax, and of community sizes,

SCiENtifiC REPOrTS | (2018) 8:5982 | DOI:10.1038/s41598-018-23932-z 5 www.nature.com/scientificreports/

Figure 2. Distribution of sizes of maximal cliques in (a) the Girvan-Newman benchmark, (b) the Lancichinetti-Fortunato-Radicchi benchmark.

Figure 3. Te friendship network from Zachary’s karate club study. (a) Te communities observed by Zachary. (b) Te communities detected by the proposed method.

smin, smax, are chosen such that kmin < smin and kmax < smax. For each vertex, a fraction 1 − μ of its connections is made to randomly chosen members of the same community, and the remaining connections are made to ran- domly chosen members of other communities. A realization of this benchmark is constructed via the following steps. At the beginning, all vertices are homeless, i.e., they belong to no communities. Each vertex is assigned to a randomly chosen community with a size greater than the vertex degree. If the community is already full, a ran- domly chosen member of this community is kicked out. Tis procedure continues until each vertex is assigned to a community. Ten connections are randomly generated while preserving the ratio between the external and internal degrees of each vertex. Te results of diferent community-detection methods compared against the LFR benchmark are shown in Fig. 1b, with parameters chosen as n = 500, m = 10, kmin = 20, kmax = 80, γ = 2, smin = 30, smax = 100, and β = 1.1. Each curve is averaged over 1000 realizations. Te results are similar to those on the GN benchmark. Te proposed method, the normalized spectral partitioning method, and the motif-conductance method using 3-cliques perform similarly: All closely approximate complete mutual information when μ ≤ 0.5, and yield nearly zero mutual information when μ ≥ 0.8. Te performance of the motif-conductance method degrades severely when 4-cliques and 5-cliques are chosen as network motifs. Te performances of the greedy methods are similar to their performances on the GN benchmark, except that the fast modularity method has a much lower accuracy when μ ≤ 0.6. To further validate the advantage of the proposed method over the motif-conductance method, we depict in Fig. 2 the size distribution of maximal cliques in both benchmarks averaged over 1000 realizations. Te distribu- tions in both benchmarks are similar. When zout and μ are small, the 4-cliques are the dominant maximal cliques and other maximal cliques generally have sizes of 2, 3, and 5. With increasing zout and μ, the numbers of 4-cliques and 5-cliques decrease rapidly and are exceeded by the numbers of 2-cliques and 3-cliques when approximately 1/3 of the connections of each vertex are inter-community. In the GN benchmark, the number of 3-cliques keeps growing afer this point and remains the most numerous maximal clique. But in the LFR benchmark, the number of 3-cliques is exceeded by the number of 2-cliques when μ > 0.7. Given these patterns in the distributions, it is not surprising that the motif-conductance method performs poorly when 4-cliques and 5-cliques are chosen as network motifs. Tese distributions also further demonstrate the advantage of the proposed method. In practice, the distribution of cliques (and other network motifs) is mostly probably unavailable when one is processing observed network data. Collecting this information is computationally expensive. Since the maximal cliques con- tain all the clique information, the proposed method is able to process general networks with no prior knowledge of clique sizes and clique locations. In summary, the proposed method achieves state-of-the-art performance on the homogeneous GN benchmark and on the scale-free LFR benchmark. In addition, the proposed method yields almost the optimal performance

SCiENtifiC REPOrTS | (2018) 8:5982 | DOI:10.1038/s41598-018-23932-z 6 www.nature.com/scientificreports/

Figure 4. Communities of college football network, using colors for conferences and spatial clusterings for identifed communities.

one could expect on these two benchmarks: Te proposed method detects the pre-defned ground-truth commu- nity structure when it is well represented by connections, and deviates from it when the ground truth diminishes. Tis behavior explains why there is little improvement over the existing methods. As opposed to the motif-based method, the proposed method also benefts from the fact that it requires no pre-specifcation of clique sizes. As a result, the proposed method bypasses a computationally expensive search for the optimal choice of clique sizes.

Zachary’s Karate Club. We apply our method to the network from the well-known karate club study by Zachary58. Tis study followed a composed of 34 members and 78 pairwise links observed over a period of three years. During the study, a political confict arose between the club president (node 34) and the instructor (node 1). Tis political confict later caused the club to split into two parts, each with half of the members. Zachary recorded a network of friendships among members of the club shortly before the fssion, and a simplifed unweighted version is shown in Fig. 3a. Diferent node colors are used in this fgure to show the two factions of the fssion afer the political confict. Figure 3b shows the community structure detected by the proposed method. Te identifed communities almost perfectly refect the two factions observed by Zachary, with only 1 (node 9) out of 34 nodes “incorrectly” assigned to the opposing faction. Tis exception can be explained by the confict of interest faced by individual number 9. As recorded by Zachary, individual number 9 was a weak political supporter of the club president before the fssion, but not solidly a member of either faction58. Tis ambivalence is revealed by the fact that node 9 is engaged in two maximal 3-cliques, on nodes {1, 3, 9} and on nodes {3, 9, 33}, and one maximal 4-clique on nodes {9, 31, 33, 34}, implying that node 9 is weakly more densely associated with members of the club president’s faction. On the other hand, Zachary pointed out that individual number 9 had an overwhelming interest in stay- ing associated with the instructor, which was not shared by any other member of the club. Individual number 9 was facing his black-belt exam in three weeks, and joining the club president’s faction would result in renouncing his rank and starting over again58. In other words, individual number 9 would have joined the club president’s faction, if this confict of interest had not emerged. Terefore, the proposed method perfectly detected the social communities in an empirically observed network of friendships.

College Football Network. We then apply the proposed method to a more complex real-world network with known community structures. Te network represents the schedule of United States football games between Division IA colleges during the regular season in Fall 200055. Te network is shown in Fig. 4, where the nodes represent teams, and the links represent regular season games between the two teams connected. Te known communities are defned by conferences, each containing around 8 to 12 teams and marked with colors. Links representing intra-conference games are also marked with the same colors as the corresponding conferences. In principle, teams from one conference are more likely to play games with each other than with teams belonging to diferent conferences. Tere also exist some independent teams that do not belong to any conference, and these teams are marked with a light-green color. Te communities identifed by the proposed method are represented by spatial clusterings in Fig. 4. In general, the proposed method correctly clusters teams from one conference. Te independent teams are clustered with conferences with which they played games most frequently, because the independent teams seldom play games between themselves. Te clusters detected by the proposed method deviate from the conference segmentation in several ways. First, the Sun Belt conference, marked with a brown color, is split into two parts, shown at the eleven o’clock and three o’clock directions, and each part is grouped with teams from the Western Athletic conference, marked with a yellow color, and independent teams. But this result is understandable given the fact that there was only one game involving teams from both these two parts. Second, one team from the Conference USA con- ference, marked with a dark red color, is clustered with teams from the Western Athletic conference. Tis team

SCiENtifiC REPOrTS | (2018) 8:5982 | DOI:10.1038/s41598-018-23932-z 7 www.nature.com/scientificreports/

Figure 5. Social network of 62 bottlenose dolphins. Te nodes are colored based on the groups observed in the study by Lusseau et al.59. Te spatial clustering represents communities detected by the proposed method.

played no games with other teams from the Conference USA conference, but played games with every team from the Western Athletic conference. Tird, two teams from the Western Athletic conference are isolated from other teams from this conference, and each is grouped with part of the Sun Belt conference. Te team at eleven o’clock had no intra-conference game, and the team at three o’clock had only two intra-conference games, but they had inter-conference games with every member of the cluster that they are assigned to. In summary, the proposed method perfectly refected the community structures established in regular-season-game association, and in addition detected the lack of intra-conference association that the known community structure fails to represent. Applications to Complex Real-World Networks In the previous section, we tested the proposed method on both computer-generated graphs and real-world net- works for which the community structures are well-defned and known a priori. In this section, we apply the pro- posed method to complex real-world networks of which the community structures are not known, and show that the proposed method helps us understand these complex networks. For each application example, the number of communities is chosen based on prior information regarding the datasets.

Bottlenose Dolphin Social Network. Our frst example is a social network composed of 62 bottlenose dolphins living in Doubtful Sound, New Zealand59. Te social ties between dolphin pairs are established based on direct observations conducted during a period of seven years by Lusseau et al. Te clustering analysis conducted by Lusseau et al. on 40 of these dolphins shows that three groups spent more time together than all individuals did on average, but group 1 is relatively weak in the sense that it is an artifact of the similar likelihood of encoun- tering these individuals in the study area59. Figure 5 shows the social network of bottlenose dolphins, where nodes represent dolphins and links represent social ties. Te three groups observed by Lusseau et al. are colored in green, red, and blue, respectively, and the dolphins not involved in the clustering analysis by Lusseau et al. are lef in black. Te dashed line denotes the community division found by the proposed method. As can be seen, the achieved division corresponds well with the observed groups, separating the red and blue groups into two com- munities. Te green group (group 1) is split evenly between the two detected communities. Tis phenomenon is understandable, because group 1 is a weak group and is not well represented by the social network since most of its members share no social ties.

Food Web. Our second example is a food web representing the carbon exchange among 128 compartments (organisms and species) occurring during the wet and dry seasons in the Florida Bay ecosystem60, as shown in Fig. 6. In this network, nodes represent compartments, and links represent energy fow (the link from node i to node j means that carbon is transferred from node i to node j). Part of the compartments are classifed into a total of 13 groups (Part of the groups were compiled by Benson et al.41), as marked with diferent colors in Fig. 6. Te remaining compartments are lef in grey. Tis network is a directed network, and we apply the proposed method to a simplifed version with each directed edge converted to an undirected edge. Te communities detected by the proposed method are divided by the dashed lines. Te division corresponds quite closely with the division of groups of compartments. Te clustering reveals four known aquatic layers: macroinvertebrates and microbial microfauna (lef), sediment organism microfauna (bottom), pelagic fshes and

SCiENtifiC REPOrTS | (2018) 8:5982 | DOI:10.1038/s41598-018-23932-z 8 www.nature.com/scientificreports/

Figure 6. Food web in the Florida Bay. Te nodes are colored based on the group classifcation given in the original research report60. Te spatial clustering represents communities detected by the proposed method.

Figure 7. Neural network of the nematode Caenorhabditis elegans. Te nodes are colored based on neuron categories described in the original research report61. Te spatial clustering represents communities detected by the proposed method.

zooplankton microfauna (right), and algae producers, avifauna, benthic fshes, herpetofauna, and seagrass pro- ducers (middle). Interestingly, some groups are evenly distributed in multiple communities, like mammals, dem- ersal fshes, and phytoplankton producers, while some other groups have a few members clustered into diferent communities, like benthic fshes, macroinvertebrates, and pelagic fshes. Tis phenomenon presumably indicates

SCiENtifiC REPOrTS | (2018) 8:5982 | DOI:10.1038/s41598-018-23932-z 9 www.nature.com/scientificreports/

that the roles of these species in the carbon exchange cannot be derived from the traditional divisions in a trivial manner. For example, though both are mammals, the manatee and the dolphin have very diverse diets. Te man- atee feeds on submergent aquatic vegetation, and the dolphin feeds on small fshes and shrimps. Consequently, one would expect that the manatee and the dolphin play diferent roles in the carbon exchange. Tus the simple traditional divisions of taxa, for example, into benthic, demersal, and pelagic organisms, or into fshes, aves, herp- tiles, and mammals, may not ideally refect their roles in the carbon exchange.

Neural Network. Our third example is the nervous system of the soil nematode Caenorhabditis elegans61, the only organism whose connectome has been completely mapped so far. Te nervous system of C. elegans is repre- sented by a neural network consisting of 280 nonpharyngeal neurons and covering 6393 chemical synapses, 890 electrical junctions, and 1410 neuromuscular junctions62,63, as shown in Fig. 7. In this network, nodes represent neurons and links represent the existence of any of the three neural interactions. Te original network is directed and contains multi-edges and loops, and we apply the proposed method to the simplifed undirected version, with each directed edge converted to an undirected edge, multi-edges merged, and loops deleted. We have labeled part of the neurons as ciliated/sensory neuron or motoneuron based on descriptions in the original research61, and these labeled neurons are colored in Fig. 7. Te remaining neurons are lef in grey. In general, ciliated/sensory neurons are neurons that are part of sensilla (groups of sense organs) or directly associated with sensilla, and motoneurons are neurons that innervate muscles. Te neurons lef in grey are mostly interneurons that create neural circuits among other neurons. Te dashed line denotes the community division found by the proposed method. As can be seen, the achieved division yields an approximate distinction between ciliated/sensory neurons and motoneurons. Tis distinction is not perfect: A small number of ciliated/sensory neurons fnd their way into the motoneuron community (lef), and several motoneurons are clustered into the ciliated/sensory-neuron community (right). Tis “incorrect” clus- tering of motoneurons is understandable. Te families of motoneurons clustered into the ciliated/sensory-neuron community (RIM, RMD, RME, RMF, RMG, RMH, SMB, SMD, URA) are motoneurons that innervate head mus- cles and are located near the head, where the major sensilla are also located. Tus one would expect these moto- neurons to frequently interact with ciliated/sensory neurons that are also located in the head. On the other hand, part of the families of ciliated/sensory neurons clustered into the motoneuron community (PHB, PHA, PDE, PLM) are ciliated/sensory neurons that are connected to sensilla located at the posterior body, where motoneu- rons are densely located to control body movements. As a result, one would expect these ciliated/sensory neurons to be more associated with local motoneurons than with ciliated/sensory neurons in the head. However, the other four families of incorrectly clustered ciliated/sensory neurons (ADL, ASJ, ALM, FLP) cannot be explained by this theory, because they are located near the head, and in addition some of them are connected to major sensilla in the head. Tis anomaly might arise because our simplifcation of the neural network (ignoring interaction direc- tions, merging multi-edges, deleting loops, and regarding all kinds of neural interactions as equivalent) could only approximately represent neural associations, and some information is lost afer the simplifcation. Conclusion and Discussion In this paper, we developed a novel community-detection method on the basis of cliques, i.e., local complete subnetworks. Te proposed method overcomes the defciencies of previous similar community-detection meth- ods by considering the nested nature of cliques and encoding the size of cliques into the optimization objective function. In addition, it does not require any pre-specifcation of the type or size of the subnetworks considered in partitioning. To verify the efectiveness of the proposed method, numerical experiments were conducted using both well-established benchmarks and real-world networks with known communities. In all cases, the commu- nity structure detected by the proposed method either achieves state-of-the-art performance or aligns well with ground-truth communities. Finally, we applied the clique-based community-detection method to real-world net- works with no a priori information regarding community structure. Specifcally, the detected community struc- ture provides insights into the social groupings of bottlenose dolphins, the roles of compartments in ecological carbon exchange, and the functions of neurons in the connectome of the model organism Caenorhabditis elegans. We also presented a theoretical analysis of the performance of the proposed method. Specifcally, we showed that our method was guaranteed to yield near-optimal performance in the bipartition case, and analyzed the compu- tational complexity of our method. Te proposed method emphasizes the power of maximal cliques in community detection. In networks with community structure, nodes within each community tend to be densely interconnected and may potentially form multiple cliques with large sizes, whereas nodes from diferent communities are sparsely connected and so are unlikely to form high-order cliques. It would in general be unfair to assume that the sizes of these cliques are above some certain threshold, though most existing methods involving cliques have made such assumptions. Maximal cliques allow algorithms to operate without such assumptions by adaptively encoding all clique informa- tion based on whatever clique sizes are available. Tough the computational complexity of the proposed method makes it unsuitable for large-scale networks, considering maximal cliques could be useful in devising more com- putationally efcient methods. For example, some greedy methods may converge faster without losing much accuracy by treating local maximal cliques as a whole. By requiring only information of local maximal cliques, it is possible to bypass the collection of global maximal-clique information, which is computationally expensive. Theoretical Analysis In this section, we present the theoretical analysis of the proposed method. We begin by analyzing the perfor- mance of the proposed method for a special case. We then discuss the computational complexity of the proposed method, and conclude this section by proving the key theoretical results in this paper.

SCiENtifiC REPOrTS | (2018) 8:5982 | DOI:10.1038/s41598-018-23932-z 10 www.nature.com/scientificreports/

Figure 8. Comparisons of clique conductance of the proposed method and the performance bounds in Teorem 4. (a) Varying n and fxed ρ = 0.6. (b) Varying ρ and fxed n = 30.

Performance Guarantee for Graph Bipartition. For the case m = 2, the graph-partitioning problem becomes a graph-bipartition problem. For this special case, spectral graph theory provides guidance on measur- ing the goodness of approximation to the clique conductance minimization64–66. One way is through an expanded version of the Cheeger inequality that characterizes the performance of spectral graph partitioning67. We follow a similar approach in the remainder of this subsection. Next we introduce terminology necessary to present our result. Let GV= (,E,)π be a connected undirected binary graph with no loops. For a subset A ⊂ , the Cheeger ratio of A is defned as

cut(AA,) hA():= , min(vol(AA), vol( )) (16) and the Cheeger constant of  is defned as

hh :m=.in ()A A (17)

Let α be the Cheeger ratio of the output of Algorithm 1. Chung proved an expanded version of the Cheeger 67 inequality, relating these values for spectral bipartition on connected binary graphs . However, in our setting, c is defned to be a weighted graph. Tus our frst step is to generalize Chung’s result to connected weighted graphs.

Lemma 3. (Expanded Cheeger inequality). Let  be a connected undirected binary graph and c be the induced clique graph with a normalized Laplacian matrix c. Let λ be the second smallest eigenvalue of c, and h be the Cheeger constant of . Ten

22 αh 2h≥≥λ ≥ , 22 (18)

where α is the Cheeger ratio of the output of Algorithm 1. Te proof of Lemma 3 is given later in this section. In our setting, the Cheeger constant h is equal to φ*, which is the optimal value of the clique conductance optimization (12), and the Cheeger ratio α is equal to φˆ, which is the clique conductance of the output of Algorithm 1. Terefore, combining Proposition 1 and Lemma 3 yields Teorem 4.

Teorem 4. Let  be a connected undirected binary graph. Let φ* denote the optimal clique-conductance value of (12) and φˆ be the clique-conductance value of output of Algorithm 1 for the case m = 2. Ten

φφ* ≤≤ˆ 2 φ* . (19) Teorem 4 shows that our optimization algorithm fnds a bipartition that is bounded within the optimal bipartition by a quadratic factor. Terefore our algorithm is mathematically guaranteed to achieve a near-optimal partition.

Performance Guarantee Verifcation. To verify the performance guarantee of the proposed method, given in Teorem 4, we apply it to a set of randomly generated graphs. Each graph is composed of n vertices, each of which is assigned a random point in [0,1]100. An undirected weighted graph is generated by computing the neg- ative Euclidean distances between each pair of these vertices, and then an undirected binary graph is generated by preserving a percentage ρ of the edges with the largest weights. Tis process produces graphs that refect the degradation of correlation with distance, which is a common assumption in many network models, and that are essentially random in other aspects.

SCiENtifiC REPOrTS | (2018) 8:5982 | DOI:10.1038/s41598-018-23932-z 11 www.nature.com/scientificreports/

Initialization Clustering Proposed O(3n/3) O(n3) Motif41 O(2n) O(n3) Spectral34 — O(n3) Louvain48 — O(nlogn) Ravasz49 — O(n2) Fast Modularity50–52 — O(n(logn)2)

Table 1. Computational complexity of the community-detection methods.

We apply the proposed method to each graph and partition it into two parts. We also enumerate all possible bipartitions and fnd the bipartition with the minimal clique conductance. In Fig. 8a, we show comparisons of clique conductance of the bipartitions achieved by the proposed method and the optimal bipartitions, with n varying from 20 to 30 and ρ = 0.6. In Fig. 8b, we repeat the experiments with n = 30 and ρ varying from 0.2 to 0.8. Each curve is averaged over 50 independent trials. As can be seen, the proposed method follows the optimal performance curve closely in general, and is well bounded by the upper bound in Teorem 4. In other words, the proposed method performs almost perfectly and always fnds a near-optimal bipartition.

Computational Complexity. Finding all maximal cliques in an arbitrary graph requires O(3n/3) compu- tations45, which is optimal as a function of n because any n-vertex graph has up to 3n/3 maximal cliques68. Afer forming the clique weight matrix, computing the frst m eigenvectors requires an eigenvalue decomposition of the clique weight matrix, for which the computational complexity is O(n3)69. Te k-means clustering algorithm needs O(nm2i) computations70, where i is the number of iterations needed to achieve convergence. Since m is much less than n and i is very small in practice, we conclude that the number of required computations in the clustering scales as O(n3). In Table 1, we summarize the computational complexity of the proposed method, the motif-conductance method, and other community-detection methods discussed in the Empirical Results section. As can be seen, the greedy methods are much faster than the proposed method, but the proposed method exhibits better perfor- mance on benchmarks (see Fig. 1). Te motif-conductance method sufers from the high computational com- plexity of the brute-force search for the optimal clique size before clustering. By focusing on maximal cliques, the proposed method decreases the computational complexity of this step from O(2n) to O(3n/3). However, the exponential complexity of the proposed method still makes it unsuitable for large networks.

Proof of Proposition 1 n Proof. Let z ∈ {0, 1} be a vector such that z(i) = 1 if vi ∈ A and z(i) = 0 if vi ∈ A. Further let Wc,k be an adjacency matrix defned as

Wck, (,ij):= ∑∑ωσ(), σσ∈∈kivv, j

let Dc,k be the corresponding degree matrix, and let Lc,k be the corresponding Laplacian matrix. Ten cut(AA,)¯ ==∑∑ωσ()∑ ((zi)1,(zj)0= ) kv≥∈1,σσkivj∈ 1 =≠∑∑ωσ() ∑ ((zi)(zj)) 2 kv≥∈1{σσki,}vj ⊂ 1 =−∑∑ωσ() ∑ ((zi)(zj))2 2 kv≥∈1{σσki,}vj ⊂ T = ∑zzLck, k≥1 T = zzLc

= cut(c AA,), where the fourth and sixth equalities make use of the standard properties of Laplacian matrices30, and the ffh

equality follows Lc = ∑kLck, . In addition, vol(Az)(= ∑∑ωσ)(∑ i) kv≥∈1 σσki∈ T = ∑zzDck, k≥1 T = zzDck,

= vol(c A),

SCiENtifiC REPOrTS | (2018) 8:5982 | DOI:10.1038/s41598-018-23932-z 12 www.nature.com/scientificreports/

where the third equality follows from Dc = ∑k Dck, . Tis concludes the proof. ☐ Proof of Lemma 3 67 Proof. Tis proof extends Chung’s proof to connected weighted graphs . Te second smallest eigenvalue λ of c can be expressed as the infmum of the Rayleigh quotient

2 ∑uv∼ ((yyuv)(− )) πc(,uv) λG ==inf(R y)inf , yy 2 ∑v∈Vy()vdv (20)

where u ∼ v means {u, v} is a connected pair of vertices, and y satisfes ∑v∈y()vdv = 0. Suppose the Cheeger constant, h, is achieved by a set S. Let χS be the vectorized indicator function of S, defned as 1if,uS∈ χ ()u = S {0otherwise.

Consider y =−χS vol(S)/vol()1, and it follows that

λ≤≤Rh()y 2 . (21)

Tus the remainder of this proof focuses on deriving a lower bound for λ in terms of Cheeger ratios.

Let g be an eigenvector achieving λ, namely,

yyT()DW− g = argmin cc. T T y D1c =0 yyDc (22)

Reorder the vertices such that

gg()vv12≥≥()  ≥ g()vn ,

and set Si = {v1, …, vi}. It follows that

α =.min(hSi) i (23)

T Let r denote the largest integer such that vol()Sr ≤ vol()/2. Since g Dc1 = 0, n n n 2 2 2 ∑∑gg()id=−min(()ic)(dii ≤−∑ gg() ()sdri), i==1 c i 1 i=1

where di := Dc(i, i) for any i. Denote by g+ and g− the positive and negative parts of g − g(sr), respectively, defned as  gg()is−≥()rrif gg()is(), g+()i =  0otherwise,  gg()sirr−≤() if gg()is(), g−()i =  0otherwise.

By the Rayleigh-Ritz theorem71,

λG = R()g ∑ ((gguv)(− ))2π (,uv) = uv∼ c 2 ∑v∈Vg()vdv ∑ ((gguv)(− ))2π (,uv) ≥ uv∼ c 2 ∑v∈V((ggvv)(− rv)) d ∑ ((gg()uv−+())(22gg()uv− ()))π (,uv) ≥ uv∼ ++ −−c . 22 ∑v∈V((gg+−vv)(+ ))dv

SCiENtifiC REPOrTS | (2018) 8:5982 | DOI:10.1038/s41598-018-23932-z 13 www.nature.com/scientificreports/

≤ Without loss of generality, we may assume R(g+) R(g−), and then we have λ ≥ R()g+ because ab+ a b  ≥ min,  cd+ c d 

if a, b, c, d > 0. For ease of presentation, we use the notation vol†()SS:m= in(vol(),vol()S ). Ten we have

λG ≥ R()g+ ∑ ((gguv)(− ))2π (,uv) = uv∼ ++c 2 ∑v∈Vg+()vdv ((∑ gg()uv− ())(22ππuv,))(∑ ((gguv)(+ )) (,uv)) = uv∼ ++c uv∼ ++c 22 ∑∑v∈Vgg+()vdv uv∼ ((++uv)(+ g )) πc(,uv) ((∑ gg()uv22− ())(π uv,))2 ≥ uv∼ ++c 22 2(∑v∈Vg+()vdv) 2 22 ((∑ |−ggvvS)(+ )c| ut(,S )) = 11≤≤in− ++ii1 ii 22 2(∑v∈Vg+()vdv) 2 22† ((∑ |−ggvv)(+ )v|a ol ()S ) ≥ 11≤≤in− ++ii1 G i 22 2(∑v∈Vg+()vdv) 2 2 ††2 α ((∑ g vS)v|−ol () vol(S − ))| = G 1≤≤in+ ii i 1 22 2 ((∑v∈Vg+ vd))v α 2 ((∑ g vd))22 = G 1≤≤in+ ivi 22 2 ((∑v∈Vg+ vd))v α 2 = G 2

where the second inequality is by the Cauchy-Schwarz inequality and the arithmetic-geometric-mean inequality, and the third inequality is by defnition of α. Tis concludes the proof. ☐ References 1. Boccaletti, S., Latora, V., Moreno, Y., Chavez, M. & Hwang, D.-U. Complex networks: Structure and dynamics. Physics Reports 424, 175–308 (2006). 2. Caldarelli, G. Scale-free networks: Complex webs in nature and technology (Oxford University Press 2007). 3. Newman, M. E. Te structure and function of complex networks. SIAM Review 45, 167–256 (2003). 4. Newman, M. Te physics of networks. Physics Today 61, 33–38 (2008). 5. Strogatz, S. H. Exploring complex networks. Nature 410, 268–276 (2001). 6. Wasserman, S. & Faust, K. : Methods and Applications (Cambridge University Press 1994). 7. Wahlström, J., Skog, I., Rosa, P. S. L., Händel, P. & Nehorai, A. Te β-model-maximum likelihood, Cramér-Rao bounds, and hypothesis testing. IEEE Transactions on Signal Processing 65, 3234–3246 (2017). 8. Yang, P., Tang, G. & Nehorai, A. Optimal time-of-use electricity pricing using game theory. In Proceedings of International Conference on Acoustics, Speech and Signal Processing (ICASSP), 3081–3084 (Kyoto, Japan 2012). 9. Yang, P., Tang, G. & Nehorai, A. A game-theoretic approach for optimal time-of-use electricity pricing. IEEE Transactions on Power Systems 28, 884–892 (2013). 10. Chavali, P. & Nehorai, A. Distributed power system state estimation using factor graphs. IEEE Transactions on Signal Processing 63, 2864–2876 (2015). 11. Porter, M. A., Onnela, J.-P. & Mucha, P. J. Communities in networks. Notices of the AMS 56, 1082–1097 (2009). 12. Fortunato, S. Community detection in graphs. Physics Reports 486, 75–174 (2010). 13. Coleman, J. S. et al. Introduction to mathematical sociology. (Collier-Macmillan, London, UK, 1964). 14. Borgatti, S. P., Mehra, A., Brass, D. J. & Labianca, G. Network analysis in the social sciences. Science 323, 892–895 (2009). 15. Moody, J. & White, D. R. Structural cohesion and embeddedness: A hierarchical concept of social groups. American Sociological Review 103–127 (2003). 16. Rives, A. W. & Galitski, T. Modular organization of cellular networks. Proceedings of the National Academy of Sciences 100, 1128–1133 (2003). 17. Spirin, V. & Mirny, L. A. Protein complexes and functional modules in molecular networks. Proceedings of the National Academy of Sciences 100, 12123–12128 (2003). 18. Chen, J. & Yuan, B. Detecting functional modules in the yeast protein-protein interaction network. Bioinformatics 22, 2283–2290 (2006). 19. Flake, G. W., Lawrence, S., Giles, C. L. & Coetzee, F. M. Self-organization and identifcation of web communities. Computer 35, 66–70 (2002). 20. Dourisboure, Y., Geraci, F. & Pellegrini, M. Extraction and classifcation of dense communities in the web. In Proceedings of 16th International Conference on World Wide Web, 461–470 (Banf, Alberta, Canada 2007). 21. Granovetter, M. S. Te strength of weak ties. American Journal of Sociology 78, 1360–1380 (1973). 22. Burt, R. S. Positions in networks. Social Forces 55, 93–122 (1976). 23. Freeman, L. C. A set of measures of centrality based on betweenness. Sociometry 40, 35–41 (1977).

SCiENtifiC REPOrTS | (2018) 8:5982 | DOI:10.1038/s41598-018-23932-z 14 www.nature.com/scientificreports/

24. Simon, H. A. Te architecture of complexity. In Facets of Systems Science, 457–476 (Springer 1991). 25. Krishnamurthy, B. & Wang, J. On network-aware clustering of web clients. In Proceedings of Conference on Applications, Technologies, Architectures, and Protocols for Computer Communication, 97–110 (Stockholm, Sweden 2000). 26. Reddy, P. K., Kitsuregawa, M., Sreekanth, P. & Rao, S. S. A graph based approach to extract a neighborhood customer community for collaborative fltering. In International Workshop on Databases in Networked Information Syst., 188–200 (Springer, Aizu, Japan 2002). 27. Redner, S. How popular is your paper? An empirical study of the citation distribution. Te European Physical Journal of B-Condensed Matter and Complex Systems 4, 131–134 (1998). 28. Sizemore, A., Giusti, C., Betzel, R. F. & Bassett, D. S. Closures and cavities in the human connectome. arXiv preprint arXiv:1608.03520 (2016). 29. Chung, F. R. Spectral Graph Teory. 92 (American Mathematical Society 1997). 30. Von Luxburg, U. A tutorial on spectral clustering. Statistics and Computing 17, 395–416 (2007). 31. Wu, Z. & Leahy, R. An optimal graph theoretic approach to data clustering: Teory and its application to image segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence 15, 1101–1113 (1993). 32. Stoer, M. & Wagner, F. A simple min-cut algorithm. Journal of the ACM 44, 585–591 (1997). 33. Hagen, L. & Kahng, A. B. New spectral methods for ratio cut partitioning and clustering. IEEE Transactions on Computer-Aided Design Integrated Circuits Systems 11, 1074–1085 (1992). 34. Shi, J. & Malik, J. Normalized cuts and image segmentation. IEEE Transactions on Pattern Analysis and Machine Intelligence 22, 888–905 (2000). 35. Wagner, D. & Wagner, F. Between min cut and graph bisection. Mathematical Foundations of Computer Science 744–750 (1993). 36. Palla, G., Derényi, I., Farkas, I. & Vicsek, T. Uncovering the overlapping community structure of complex networks in nature and society. Nature 435, 814–818 (2005). 37. Derényi, I., Palla, G. & Vicsek, T. Clique percolation in random networks. Physical Review Letters 94, 160202 (2005). 38. Hatcher, A. Algebraic Topology (Cambridge University Press, 2002). 39. Milo, R. et al. Network motifs: Simple building blocks of complex networks. Science 298, 824–827 (2002). 40. Yaveroğlu, Ö. N. et al. Revealing the hidden language of complex networks. Scientifc Reports 4 (2014). 41. Benson, A. R., Gleich, D. F. & Leskovec, J. Higher-order organization of complex networks. Science 353, 163–166 (2016). 42. Ng, A. Y., Jordan, M. I. & Weiss, Y. On spectral clustering: Analysis and an algorithm. In Proceedings of 14th International Conference on Neural Information Processing Systems, 849–856 (Vancouver, British Columbia, Canada 2001). 43. Bron, C. & Kerbosch, J. Algorithm 457: Finding all cliques of an undirected graph. Communications of the ACM 16, 575–577 (1973). 44. Koch, I. Enumerating all connected maximal common subgraphs in two graphs. Teoretical Computer Science 250, 1–30 (2001). 45. Tomita, E., Tanaka, A. & Takahashi, H. Te worst-case time complexity for generating all maximal cliques and computational experiments. Teoretical Computer Science 363, 28–42 (2006). 46. Cazals, F. & Karande, C. A note on the problem of reporting maximal cliques. Teoretical Computer Science 407, 564–568 (2008). 47. Lee, J. R., Gharan, S. O. & Trevisan, L. Multiway spectral partitioning and higher-order Cheeger inequalities. Journal of ACM 61, 37:1–37:30 (2014). 48. Blondel, V. D., Guillaume, J.-L., Lambiotte, R. & Lefebvre, E. Fast unfolding of communities in large networks. Journal of Statistical Mechanics: Teory and Experiment 2008, P10008 (2008). 49. Ravasz, E., Somera, A. L., Mongru, D. A., Oltvai, Z. N. & Barabási, A.-L. Hierarchical organization of modularity in metabolic networks. Science 297, 1551–1555 (2002). 50. Newman, M. E. Fast algorithm for detecting community structure in networks. Physical review E 69, 066133 (2004). 51. Clauset, A., Newman, M. E. & Moore, C. Finding community structure in very large networks. Physical review E 70, 066111 (2004). 52. Good, B. H., de Montjoye, Y.-A. & Clauset, A. Performance of modularity maximization in practical contexts. Physical Review E 81, 046106 (2010). 53. Danon, L., Diaz-Guilera, A., Duch, J. & Arenas, A. Comparing community structure identifcation. Journal of Statistical Mechanics: Teory and Experiment 2005, P09008 (2005). 54. Barabási, A.-L. (Cambridge university press, 2016). 55. Girvan, M. & Newman, M. E. Community structure in social and biological networks. Proceedings of the National Academy of Sciences 99, 7821–7826 (2002). 56. Barabási, A.-L. & Albert, R. Emergence of scaling in random networks. Science 286, 509–512 (1999). 57. Lancichinetti, A., Fortunato, S. & Radicchi, F. Benchmark graphs for testing community detection algorithms. Physical Review E 78, 046110 (2008). 58. Zachary, W. W. An information fow model for confict and fssion in small groups. Journal of Anthropological Research 33, 452–473 (1977). 59. Lusseau, D. et al. Te bottlenose dolphin community of Doubtful Sound features a large proportion of long-lasting associations. Behavioral Ecology and Sociobiology 54, 396–405 (2003). 60. Ulanowicz, R. E. & DeAngelis, D. L. Network analysis of trophic dynamics in South Florida ecosystems-the Florida Bay ecosystem: Annual report to the U.S. geological survey. U.S. Geological Survey Program on the South Florida Ecosystem 114–115 (1999). 61. White, J., Southgate, E., Tomson, J. & Brenner, S. Te structure of the nervous system of the nematode Caenorhabditis elegans. Philosophical Transactions of the Royal Society of London B: Biological Sciences 314, 1–340 (1986). 62. Chen, B. L., Hall, D. H. & Chklovskii, D. B. Wiring optimization can relate neuronal structure and function. Proceedings of the National Academy of Sciences 103, 4723–4728 (2006). 63. Varshney, L. R., Chen, B. L., Paniagua, E., Hall, D. H. & Chklovskii, D. B. Structural properties of the Caenorhabditis elegans neuronal network. PLOS Computational Biology 7, 1–21 (2011). 64. Cheeger, J. A lower bound for the smallest eigenvalue of the laplacian. In Proceedings of Princeton Conference in honor of Professor S. Bochner, 195–199 (Princeton University Press 1970). 65. Donath, W. E. & Hofman, A. J. Lower bounds for the partitioning of graphs. IBM Journal of Research and Development 17, 420–425 (1973). 66. Fiedler, M. A property of eigenvectors of nonnegative symmetric matrices and its application to graph theory. Czechoslovak Mathematical Journal 25, 619–633 (1975). 67. Chung, F. Four Cheeger-type inequalities for graph partitioning algorithms. Proceedings of ICCM, II 751–772 (2007). 68. Moon, J. W. & Moser, L. On cliques in graphs. Israel journal of Mathematics 3, 23–28 (1965). 69. Jacobi, C. G. Über ein leichtes verfahren, die in der theorie der säkularstörangen vorkommenden gleichungen numerisch aufzuloösen, crelle’s journal 30 (1846) 51. Crelle’s Journal 30, 51–94 (1846). 70. Lloyd, S. Least squares quantization in pcm. IEEE Transactions on Information Teory 28, 129–137 (1982). 71. Trefethen, L. N. & Bau, D. III Numerical Linear Algebra (SIAM, 1997).

Acknowledgements We thank Mark Newman for compiling and sharing the Zachary’s karate club and the college football network. We thank Mark Newman and David Lusseau for compiling and sharing the bottlenose dolphin network. We thank Jure Leskovec and Robert E. Ulanowicz for compiling and sharing the Florida bay food network. We thank

SCiENtifiC REPOrTS | (2018) 8:5982 | DOI:10.1038/s41598-018-23932-z 15 www.nature.com/scientificreports/

the contributors to WORMATLAS for compiling and sharing the connectome of Caenorhabditis elegans. We thank Vincent D. Blondel for sharing the MATLAB implementation of the Louvain method. Author Contributions Z.L., J.W. and A.N. designed research; Z.L. performed research and analyzed data; Z.L. and J.W. discussed the results and wrote the manuscript; all authors reviewed the manuscript; A.N. supervised the project. Additional Information Competing Interests: Te authors declare no competing interests. Publisher's note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional afliations. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Cre- ative Commons license, and indicate if changes were made. Te images or other third party material in this article are included in the article’s Creative Commons license, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons license and your intended use is not per- mitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.

© Te Author(s) 2018

SCiENtifiC REPOrTS | (2018) 8:5982 | DOI:10.1038/s41598-018-23932-z 16