Next Article in Journal
RazorNet: Adversarial Training and Noise Training on a Deep Neural Network Fooled by a Shallow Neural Network
Previous Article in Journal
Breast Cancer Diagnosis System Based on Semantic Analysis and Choquet Integral Feature Selection for High Risk Subjects
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

InfoFlow: A Distributed Algorithm to Detect Communities According to the Map Equation

Department of Ophthalmology, State University of New York Downstate Medical Center, Brooklyn, NY 11203, USA
Big Data Cogn. Comput. 2019, 3(3), 42; https://doi.org/10.3390/bdcc3030042
Submission received: 25 April 2019 / Revised: 8 July 2019 / Accepted: 18 July 2019 / Published: 22 July 2019

Abstract

:
Formidably sized networks are becoming more and more common, including in social sciences, biology, neuroscience, and the technology space. Many network sizes are expected to challenge the storage capability of a single physical computer. Here, we take two approaches to handle big networks: first, we look at how big data technology and distributed computing is an exciting approach to big data storage and processing. Second, most networks can be partitioned or labeled into communities, clusters, or modules, thus capturing the crux of the network while reducing detailed information, through the class of algorithms known as community detection. In this paper, we combine these two approaches, developing a distributed community detection algorithm to handle big networks. In particular, the map equation provides a way to identify network communities according to the information flow between nodes, where InfoMap is a greedy algorithm that uses the map equation. We develop discrete mathematics to adapt InfoMap into a distributed computing framework and then further develop the mathematics for a greedy algorithm, InfoFlow, which has logarithmic time complexity, compared to the linear complexity in InfoMap. Benchmark results of graphs up to millions of nodes and hundreds of millions of edges confirm the time complexity improvement, while maintaining community accuracy. Thus, we develop a map equation based community detection algorithm suitable for big network data processing.

1. Introduction

Formidably sized networks are becoming more and more common, including in social sciences, biology, neuroscience, and the technology space, where the number of nodes and edges may exceed millions or billions. In such cases, the sheer size of the network presents challenges in the processing, visualizing, understanding, or even storing the network [1,2,3].
When the network data exceeds the memory or disk storage capacity of a single computer, big data technology, including distributed filesystems and distributed processing techniques, can be used to store and process the data [1,2,3]. The caveat with big data technology is that parallel algorithms have to be designed and implemented in place of the original, serial algorithms [4].
Whilst big data technology provides a means to network storage and processing, for visualization and analytical purposes, smaller sized networks are much favored. Thus, coarse-grained representations of the big networks that preserve important network properties is paramount. For instance, many social systems show homophily in their network representations: nodes with similar properties tend to form highly connected groups called communities, clusters, or modules. Community detection algorithms [5,6,7,8,9,10] have been an active area of research, with ample algorithms to identify network communities.
Different approaches to community detection exists [5,6,7,8,9,10]. A more statistically oriented approach is the clustering approach, where sets of points (nodes in the graph; edges information tend not to be used) are categorized into groups called clusters, based on distance or density distributions in the state space [11]. One popular algorithm is the k-means cluster algorithm, where each point is iteratively assigned to the cluster with the nearest arithmetic mean [11].
When graph edges are considered, community detection algorithms often have an implicit heuristic intra-community, wherein connections are more abundant than inter-community ones. Thus, the most popular approach is based on maximizing some measures of modularity that quantify the ratio of intra- and inter-community edges, relative to a random network, such as the Louvain algorithm [12]. However, such approaches suffer from problems of the “resolution limit”, where communities that should be distinct are merged into a bigger community [13].
Another approach is the information theoretic approach, where we interpret the edges of the network as transportation or flow between nodes. The map equation [14] provides an associated information cost for describing the movements within the network, given a community partitioning. If a network has regions in which a PageRank random surfer tends to stay for a long time, minimizing the cost of movement as described by the map equation would identify such regions as communities. Thus, this approach takes advantage of the duality between finding community structure in networks and minimizing the description length of a random surfer′s movements on a network. Compared to the modularity approach, which tends to view graph edges as structural connections, and where the detected communities reflect how the network formed, the information theoretic approach sees graph edges as flow, and detects communities reflect network dynamics [7]. In particular, the InfoMap algorithm [15] is a greedy algorithm that uses the map equation to partition a network into communities, performing well on both synthetic benchmarks and real networks [7]. Further, it does not suffer from any resolution limit problems [16]. It is undergoing active research with successful extensions to include those to capture higher-order flow, capturing time-dependent networks [17], overlapping communities [18], and multi-level communities [19].
In this paper, we adapt InfoMap into a distributed algorithm, given its strength in capturing network dynamics, and numerous extension possibilities. Similar projects exist to parallelize InfoMap [20,21,22,23], usually involving parallelizing a certain subset of the serial algorithm, with further assumptions of thread-locking or graph locality on top of InfoMap. In this paper, we propose two advancements: first, we develop discrete mathematics to adapt InfoMap into distributed computing framework. This is distinct from other existing works, since the entire algorithm and all data structures are parallelized and distributed, while keeping the algorithm identical to the serial InfoMap. Second, we further develop the mathematics for a greedy algorithm, InfoFlow, which has logarithmic time complexity, compared to the linear complexity in InfoMap. Benchmark results of graphs of up to millions of nodes and hundreds of millions of edges confirm the time complexity improvement, while maintaining community accuracy. Thus, we develop a map equation based community detection algorithm suitable for big network data processing.
This paper is structured as follows: In Section 2, we adapt InfoMap into a distributed computing framework, and develop the InfoFlow distributed algorithm. In Section 3, we perform benchmark and review results. In Section 4, we summarize and discuss future directions.

2. Methodology

In this paper, we build on top of the map equation and InfoMap to found the distributed algorithm InfoFlow, which has improved runtime complexity and can be easily deployed and applied to big datasets. We quickly present the map equation in Section 2.1 for easy reference. Then, we develop the discrete mathematics in Section 2.2, which allow InfoMap to be adapted to distributed computing framework. In Section 2.3, we further develop the discrete math for the InfoFlow algorithm, which has logarithmic time complexity, as compared to the linear time complexity in InfoMap. In Section 3, I perform benchmarking for the two algorithms.

2.1. The Map Equation

For a given network partition, the map Equation [14] specifies the theoretical limit of how concisely we can describe the trajectory of a PageRank random surfer on the network. The underlying code structure of the map equation is designed such that the description can be compressed if the network has regions in which the random walker tends to stay for a long time.
Given a network with n nodes indexed in Greek alphabets, we first perform PageRank analysis. The edges in the network will be interpreted as the transition probability, so that given an edge from node α to node β, with weight ωαβ, a PageRank random surfer has probability proportional to the edge weight to transit from node α to node β, not accounting teleportation probability yet. Since the edges signify transition probability, the edge weights are normalized with respect to the outgoing node, so that:
α ω α β = 1
then, each node will be associated with its ergodic frequency pα.
The map Equation [14] specifies that, if we partition the network nodes into modules, where each module is indexed with Latin alphabets, then the network will have an information entropy, or codelength, associated with its PageRank random walk:
L = plogp ( i q i ) 2 i plogp ( q i )   α plogp ( p α )
where:
plogp ( x ) = x log 2 x
pi is the ergodic frequency of the module. This is simply the sum of the ergodic frequencies of the nodes within the module:
p i =   α i p α
and qi is the probability of exiting the module, accounting for PageRank teleportation:
q i =   τ n   n i n 1 p i +   ( 1 τ ) α i β i p α ω α β
ni being the number of nodes within module i, and τ is the probability of PageRank teleportation.

2.2. InfoMap

Here, we develop mathematics to construct pi and qi, the ergodic frequency, and the exit probability of each module, thereby allowing calculation of Equation (1). In particular, the InfoMap algorithm [15] starts by having each node being its own module, and then in each iteration, merge two modules into one to reduce codelength. We develop maths to construct pi and qi, by providing formulae for the quantities in the merged module based on those in the two modules to be merged.
We can rewrite Equation (4) as:
q i =   τ n   n i n 1 p i +   ( 1 τ ) w i
with:
w i =   α i β i p α ω α β
being the exit probability without teleportation.
We can define a similar quantity, the transition probability without teleportation from module j to module k:
w j k =   α j β k p α ω α β
Now, if we merge modules j and k into a new module with index i, the exit probability would be follow Equation (5) with:
n i =   n j + n k
p i =   p j + p k
and the exit probability without teleportation can be calculated via:
w i =   α i β i p α ω α β
=   α i   o r   α k β i   a n d   β k p α ω α β
=   α j β i   a n d   β k p α ω α β +   α k β i   a n d   β k p α ω α β
since we are looking at the exit probability of a module, there are no self-connections within modules, so that the specification of pα ωαβ given α i, β i is redundant. Then we have:
ω i = α j β k p α ω α β +   α k β j p α ω α β
which conforms with intuition, that the exit probability without teleportation of the new module is equal to the exit probability of all nodes without counting for the connections from j to k, or from k to j.
We can further simplify the math’s by expanding the non-inclusive set specification:
ω i =   α j [ β p α ω α β   β k p α ω α β ] +   α k [ β p α ω α β   β j p α ω α β ]
Expanding gives:
ω i =   α j β p α ω α β   α j β k p α ω α β +   α k β p α ω α β   α k β j p α ω α β
which by definition is:
ω i =   ω j   ω j k +   ω k +   ω k j
So that now, we can calculate ωi and by Equation (5) we can calculate qi.
We can do similar for ωil, if we merged modules j and k into i, and l is some other module:
w i l =   α i β l p α ω α β
=   α j   o r   α ϵ k β l p α ω α β
=   α j β l p α ω α β +   α k β l p α ω α β
=   ω j l +   ω k l
and similarly for ωli:
ω l i =   ω l j +   ω l k
With these calculations, we are able to construct the modular properties after each pair-wise merging, where the relevant properties include ni, pi, wi, and wij. We can forget about the actual nodal properties; after each merge, we only need to keep track of modular properties.
Now, we can implement the InfoMap algorithm, where initially each node is its own module, and then in each iteration, we merge the two modules that offer the greatest reduction in codelength, with the new module having modular properties according to Equations (8), (9), (16), (5), (20), and (21). The algorithm terminates when no more merges are possible to reduce codelength. Since the maximum number of merges is e − 1 merges, where e is the number of edges in the network, the number of merges have complexity O(e). A graphical illustration of the InfoMap algorithm is shown in Figure 1.

2.3. InfoFlow

InfoMap merges two modules on each iteration, giving O(e) loops. One obvious improvement possibility is to perform multiple merges per loop. However, this idea is not compatible with the idea of performing pair-wise merges, unless we can make sure no module is involved with more than one merge at once.
Here, rather than focusing on making sure that no module is involved with more than one merge at once, we can explore the idea of merging multiple modules at once. Thus, we can perform parallel merges in the same loop iteration, where possibly all modules are involved in some merge.
Consider multiple modules ~Mi merging into a module M. Another way to express this equivalently is to say that a module M is partitioned into i non-overlapping subsets:
M = i M i
Then we can expand the nodal sum over module M into the sum over all nodes in all submodules Mi, the exit probability of the merged module M becomes:
ω M =   M i α M i β M p α ω α β
=   M i α M i [ β p α ω α β   β M p α ω α β ]
=   M i α M i β p α ω α β     M i α M i β M i p α ω α β  
=   M i α M i β p α ω α β     M i α M i M j β M j p α ω α β  
where we expand the second term with respect to the M j ′s to give:
ω M =   M i α M i β p α ω α β   M i α M i M j M i β M j p α ω α β   M i α M i β M i i p α ω α β
Combining the first and third terms,
ω M =   M i α M i β M i p α ω α β   M i α M i M j M i β M j p α ω α β
which we can recognize as:
ω M =   M i ω M i   M i M j M i ω M i M j
ω M i =   α M i β M i p α ω α β
ω M i M j =   α M i β M j p α ω α β
where we can immediately see that Equation (29) is a linear generalization of Equation (16), while Equations (30) and (31) are identical to previous definitions, and may be calculated iteratively as the previous algorithm. We can calculate ω M i M j by expanding on the partitioning:
ω M i M j =   M k M i α M k M k M j β M k p α ω α β
=   M k M i M k M j ω M k M k
so that when we merge a number of modules together, we can calculate its connections with other modules by aggregating the existing modular connections. This is directly analogous to Equation (20).
Thus, the mathematical properties of merging multiple modules into one are identical to that of merging two modules. This is key to developing my multi-merge algorithm, InfoFlow.
As InfoMap, each node is initially its own module. During each iteration, each module seeks to merge with a connected module that offers the greatest reduction in codelength, if only the merging of the two modules are considered. If no such merge exists, the module does not seek to merge. Then, the weakly connected modular components connected via the merge seeking are merged into one module, according to Equations (29) and (33). This is repeated seek-merging and bulk-merging is iterated until the codelength cannot be reduced. A graphical illustration of InfoFlow is shown in Figure 2.
Next, n nodes are partitioned into m final modules according to InfoFlow. If we assume in each loop, k modules merge into one on average, and that there are l loop, we have:
n   k l = m
k l = n m
l = log k n log k m
so that we have O( log k n ) merges, while within each merge, there is O(k) time complexity related to the connected component with O(k) modules. Thus, the overall average time complexity is O( k log k n ).
The worst case complexity comes in two cases: first, when we degenerate into InfoMap, i.e., we have O(e) loops, each loop we merge only two modules into one; second when l = 1 and k = n/m, and the overall complexity is O(k) = O(n/m).

3. Simulation and Results

InfoMap and InfoFlow are implemented on Apache Spark [24] using the Scala language. The code, which is open source and can be accessed online [25] is set up and run on a local desktop computer, the Dell Precision T3610, running Windows 7 Professional. For easy referencing, the specifications for the computer is Intel Xeon CPU E5-1620 v2 @3.70 GHz 3.70 GHz, with 64 Gb RAM. Apache Spark 2.1.1 and Hadoop 2.7 are used. When possible, RAM disk was used to speed up simulations.
First, we ran real world data of small to moderately sized graphs from [26,27,28], with both InfoMap and InfoFlow, and compared the runtime performance and resultant communities. The results are tabulated in Table 1, listing the nodes and edges of the graph, the number of loops ran before the algorithms completed, the runtime (for the sake of comparison, common runtime between the two algorithms, including initialization time and PageRank runtime, are not counted), and final partitioning codelength. The normalized mutual information between the community partitioning’s given by the two algorithms is also tabulated.
We see that, for InfoMap, the number of loops and runtime follow a linear complexity relationship with the size of the graph, while the number of loops in InfoFlow is kept within 4, and the runtime within 30 s, so that a pseudo-constant, or logarithmic complexity relationship with the size of the graph, along the estimation of Equation (36), is confirmed. As a solid example of the speedup in InfoFlow, for the graph with 27,770 nodes and 352,807 edges, there are 1000 times less loops in InfoFlow, and the runtime is nearly 3.5 h for InfoMap, and 25 s for InfoFlow, representing nearly a 500-time speedup.
As analyzed in Equations (34)–(36), this speedup in runtime and complexity is a direct consequence of going from pair-wise merge in InfoMap to the multi-merging in InfoFlow. In terms of partitioning accuracy, it might be a concern whether the bulk-merging of InfoFlow might sacrifice partitioning accuracy. From the results of Table 1, we see that the codelength difference between the two algorithms are very similar, rarely exceeding a 5% difference. The normalized mutual information (NMI) is often kept higher than 80%, so the accuracy in community detection is not compromised when going from InfoMap to InfoFlow.
Having compared the runtime and accuracy between InfoMap and InfoFlow, we now apply InfoFlow to bigger data, with graphs going up to millions of nodes and hundreds of millions of edges [26,27,28], until the limit of the computing resource is challenged on the Dell Precision T3610. The results of the simulations are tabulated in Table 2. We see that the number of loops is kept within 20, so a pseudo-constant or logarithmic complexity is well followed, while the runtime is kept within a few hours. The runtime does not follow any obvious relationship with the number of nodes or edges, since the processing of the dataset challenges the limit of the computer, and complex performance issues with memory caching and paging comes into play. Importantly, the runtime is in the same order of magnitude with PageRank calculation time. Since the latter is a prerequisite for the map equation approach, the benchmarking results indicate we have optimal runtime complexity within the map equation approach to community detection.

4. Conclusions

With a view of developing a distributed community detection algorithm, we developed discrete mathematics on the map equation to provide formulae for the modular properties for merged pairwise modules, which enabled the implementation of InfoMap algorithm on distributed computing. We then generalized this from a pairwise merge to merging arbitrary number of modules, which prompted the algorithm InfoFlow. Benchmarking results on an Apache Spark implementation confirmed that the runtime complexity of InfoFlow had logarithmic runtime complexity, compared to the linear time complexity of InfoMap, while retaining accuracy in the community results.
Similar projects to develop distributed community detection algorithms, in particular InfoMap, exist [20,21,22,23]. These projects parallelize certain segments of the algorithm while keeping other segments and data structures in serial, with assumptions on thread locking or graph locality. In contrast, in this paper, we developed discrete math to adapt InfoMap into distributed computing framework, while keeping the algorithm identical, with no additional assumptions being made. In other words, we developed the mathematical formulation that enables parallel and distributed computing, rather than developing an inherently parallel algorithm. This is a significant development in InfoMap. InfoFlow was built with only one additional development of multi-merging, as opposed to the pair-wise merging in InfoMap. Benchmark results showed that this development improves runtime complexity while retaining result accuracy. Thus, the mathematics is a significant contribution to the research in InfoMap, which will be valuable future research in InfoMap extensions such as hierarchical structures, overlapping structures, and higher-order Markov dynamics [17,18,19].
The coding implementation [25] is open source and implemented in Apache Spark, which is actively maintained, with proven performance, reliability and scalability, with contributions from companies such as Google, Facebook, and IBM [29]. It can be easily configured and deployed on clusters and cloud platforms. This is in contrast to, for example, the implementation in [23], which used the GraphLab PowerGraph library [30] which was not actively maintained. Another example is [20], which used the Thrill library [31], which is still in the experimental phase. The choice of distributed computing library framework, along with computational environment, is one of the major factors affecting runtime, memory consumption and other performance metrics. Meanwhile, algorithmic performance, which is agnostic to the coding implementation and library environment, may be measured via theoretical space and time complexity, where the logarithmic runtime complexity of InfoFlow shines.

Funding

This research received no external funding.

Acknowledgments

The author thank Meena Rajani and Martin Rosvall for fruitful discussions.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Chen, C.L.P.; Zhang, C.Y. Data-intensive applications, challenges, techniques and technologies: A survey on Big Data. Inf. Sci. 2014, 275, 314–347. [Google Scholar] [CrossRef]
  2. Oussous, A.; Benjelloun, F.Z.; Lahcen, A.A.; Belfkih, S. Big Data technologies: A survey. J. King Saudi Univ. Comput. Inf. Sci. 2018, 30, 431–448. [Google Scholar] [CrossRef]
  3. Hashem, I.; Yaqoob, I.; Mokhtar, Y.A.S.; Gani, N.A.; Khan, S. The rise of “big data” on cloud computing: Review and open research issues. Inf. Syst. 2015, 47, 98–115. [Google Scholar] [CrossRef]
  4. Hwu, W.M. What is ahead for parallel computing. J. Parallel Distrib. Comput. 2014, 74, 2574–2581. [Google Scholar] [CrossRef]
  5. Girvan, M.; Newman, M.E.J. Community structure in social and biological networks. Proc. Natl. Acad. Sci. USA 2002, 99, 7821–7826. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  6. Fortunato, S. Community detection in graphs. Phys. Rep. 2010, 486, 75–174. [Google Scholar] [CrossRef]
  7. Lancichinetti, A.; Fortunato, S. Community detection algorithms: A comparative analysis. Phys. Rev. E 2009, 80, 056117. [Google Scholar] [CrossRef] [PubMed]
  8. Aldecoa, R.; Marin, I. Exploring the limits of community detection strategies in complex networks. Sci. Rep. 2013, 3, 2216. [Google Scholar] [CrossRef]
  9. Fortunato, S.; Hric, D. Community detection in networks: A user guide. Phys. Rep. 2016, 659, 1–44. [Google Scholar] [CrossRef] [Green Version]
  10. Javed, M.A.; Younis, M.S.; Latif, S.; Qadir, J.; Baig, A. Community detection in networks: A multidisciplinary review. J. Netw. Comput. Appl. 2018, 108, 87–111. [Google Scholar] [CrossRef]
  11. Saxena, A.; Prasad, M.; Gupta, A.; Bharill, N.; Patel, O.P.; Tiwari, A.; Joo, E.M.; Weiping, D.; Chin-Teng, L. A review of clustering techniques and developments. Neurocomputing 2017, 267, 664–681. [Google Scholar] [CrossRef] [Green Version]
  12. Newman, M.E.J.; Girvan, M. Finding and evaluating community structure in networks. Phys. Rev. E 2004, 69, 026113. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  13. Fortunato, S.; Barthelemy, M. Resolution limit in community detection. Proc. Natl. Acad. Sci. USA 2007, 104, 36–41. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  14. Rosvall, M.; Axelsson, D.; Bergstrom, C.T. The map equation. Eur. Phys. J. Spec. Top. 2009, 178, 13–23. [Google Scholar] [CrossRef]
  15. Rosvall, M.; Bergstrom, C.T. Maps of random walks on complex networks reveal community structure. Proc. Natl. Acad. Sci. USA 2008, 105, 1118–1123. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  16. Kawamoto, T.; Rosvall, M. Estimating the resolution limit of the map equation in community detection. Phys. Rev. E 2015, 91, 012809. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  17. Rosvall, M.; Bergstrom, C.T. Mapping change in large networks. PLoS ONE 2010, 5, e8694. [Google Scholar] [CrossRef]
  18. Esquivel, A.V.; Rosvall, M. Compression of flow can reveal overlapping modular organization in networks. Phys. Rev. X 2011, 1, 021025. [Google Scholar]
  19. Rosvall, M.; Bergstrom, C.T. Multilevel compression of random walks on networks reveals hierarchical organization in large integrated systems. PLoS ONE 2011, 6, e18209. [Google Scholar] [CrossRef]
  20. Hamann, M.; Strasser, B.; Wagner, D.; Zetiz, T. Distributed Graph Clustering Using Modularity and Map Equation. In Euro-Par 2018: Parallel Processing Page; Springer: Cham, Switzerland, 2018; pp. 688–702. [Google Scholar] [Green Version]
  21. Bae, S.H.; Halperin, D.; West, J.D.; Rosvall, M.; Howe, B. Scalable Flow-Based Community Detection for Large-Scale Network Analysis. In Proceedings of the 2013 IEEE 13th International Conference on Data Mining Workshops, Dallas, TX, USA, 7–10 December 2013. [Google Scholar]
  22. Bae, S.H.; Halperin, D.; West, J.D.; Rosvall, M.; Howe, B. Scalable and Efficient Flow-Based Community Detection for Large-Scale Graph Analysis. ACM Trans. Knowl. Discov. Data 2017, 11, 32. [Google Scholar] [CrossRef]
  23. Bae, S.H.; Howe, B. GossipMap: A Distributed Community Detection Algorithm for Billion-Edge Directed Graphs. In Proceedings of the SC’15: International Conference for High Performance Computing, Networking, Storage and Analysis, Austin, TX, USA, 15–20 November 2015. [Google Scholar]
  24. Zaharia, M.; Chowdhury, M.; Franklin, M.J.; Shenker, S.; Stoica, I. Spark: Cluster Computing with Working Sets. HotCloud 2010, 10, 95. [Google Scholar]
  25. Fung, P.K. InfoFlow: An Apache Spark Implementation of the InfoMap Community Detection Algorithm. Available online: https://github.com/felixfung/InfoFlow (accessed on 21 July 2019).
  26. Batagelj, V.; Mrvar, A. Pajek Datasets. Available online: http://vlado.fmf.uni-lj.si/pub/networks/data/ (accessed on 21 July 2019).
  27. Leskovec, J.; Krevl, A. SNAP Datasets: Stanford Large Network Dataset Collection. Available online: http://snap.stanford.edu/data (accessed on 21 July 2019).
  28. Davis, T.A.; Hu, Y. The university of Florida sparse matrix collection. ACM Trans. Math. Softw. (TOMS) 2011, 38, 1. [Google Scholar] [CrossRef]
  29. Apache Software Foundation. Apache Spark Committers. Available online: https://spark.apache.org/committers.html (accessed on 21 July 2019).
  30. Gonzalez, J.E. GraphLab PowerGraph. Available online: https://github.com/jegonzal/PowerGraph (accessed on 21 July 2019).
  31. Bingmann, T.; Axtmann, M.; Jobstl, E.; Lamm, S.; Nguyen, H.C.; Noe, A.; Schlag, S.; Stumpp, M.; Sturm, T.; Sanders, P. Thrill: High-performance algorithmic distributed batch data processing with C++. In Proceedings of the 2016 IEEE International Conference on Big Data (Big Data), Washington, DC, USA, 5–8 December 2016. [Google Scholar]
Figure 1. Graph with 25 nodes as visual illustration of InfoMap algorithm. Each node is labeled with a node number for reference and is colored according to its assigned community. We show the first four merges, and last two merges according to the InfoMap algorithm. In each step, two communities are merged into one. There are 21 merges in total. For brevity, only the first four and last two merges are shown. (a) In the initial graph, each node is its own module; (b) nodes 23 and 24 are merged; (c) node 22 is merged with module 23–24; (d) nodes 17 and 19 are merged; (e) node 25 is merged with module 22–23–24; (f,g) for brevity, we skip to the last two merges, where we are left with a final partitioning of four communities.
Figure 1. Graph with 25 nodes as visual illustration of InfoMap algorithm. Each node is labeled with a node number for reference and is colored according to its assigned community. We show the first four merges, and last two merges according to the InfoMap algorithm. In each step, two communities are merged into one. There are 21 merges in total. For brevity, only the first four and last two merges are shown. (a) In the initial graph, each node is its own module; (b) nodes 23 and 24 are merged; (c) node 22 is merged with module 23–24; (d) nodes 17 and 19 are merged; (e) node 25 is merged with module 22–23–24; (f,g) for brevity, we skip to the last two merges, where we are left with a final partitioning of four communities.
Bdcc 03 00042 g001
Figure 2. The same 25-node graph, showing all merges according to the InfoFlow algorithm. There are totally 2 loops, compared to 21 in InfoMap. (a) The initial graph is shown for easy reference; (b) after one loop, the 25 communities are merged into 9, which is roughly the geometric mean between 25 and 4; (c) The final partitioning is identical to that of InfoMap.
Figure 2. The same 25-node graph, showing all merges according to the InfoFlow algorithm. There are totally 2 loops, compared to 21 in InfoMap. (a) The initial graph is shown for easy reference; (b) after one loop, the 25 communities are merged into 9, which is roughly the geometric mean between 25 and 4; (c) The final partitioning is identical to that of InfoMap.
Bdcc 03 00042 g002
Table 1. Benchmarking results for InfoMap and InfoFlow, for datasets of various size, on the Dell Precision T3610. To aid comparison we do not include common performance runtime, including file reading time and PageRank runtime from the table. Runtime in unit of seconds. In these test cases, while runtime complexity is linear in the case of InfoMap, it is pseudo-constant in InfoFlow, while keeping very high accuracy in the final partitioning, according to normalized mutual information (NMI). The datasets are real world graphs taken from [26,27,28].
Table 1. Benchmarking results for InfoMap and InfoFlow, for datasets of various size, on the Dell Precision T3610. To aid comparison we do not include common performance runtime, including file reading time and PageRank runtime from the table. Runtime in unit of seconds. In these test cases, while runtime complexity is linear in the case of InfoMap, it is pseudo-constant in InfoFlow, while keeping very high accuracy in the final partitioning, according to normalized mutual information (NMI). The datasets are real world graphs taken from [26,27,28].
NodesEdgesInfoMapInfoFlowNormalized Mutual Information
LoopsTimeCodelengthLoopsTimeCodelength
3969949073.449233.87594%
674613325163.380233.40899%
10594919568535.617266.20686%
149019,0901006867.786368.04485%
211422771082724.532244.86295%
308410,41317631936.041386.74887%
447012,73119152324.780375.04295%
494113,18844494236.953377.20490%
675254,233466110577.2914107.81185%
734311,89841334224.897385.011100%
884341,60147419976.2854136.75292%
10,61772,168457111947.206397.35495%
13,308148,03510,29836239.0131109.39582%
13,356120,23812,64234929.96831110.7876%
23,219325,593780371208.2313168.41995%
27,770352,80725,16612,3529.82342510.4774%
Table 2. Benchmarking results for InfoFlow, on the Dell Precision T3610, for datasets that challenge the limit the computer resource. The runtime for graph reading and PageRank calculations are listed to add perspective on community detection speed. Importantly, the number of loops are very small, indicating logarithmic complexity, and that the community detection runtime is on the same order of magnitude as PageRank. Since the latter is a prerequisite for the map equation approach to community detection, InfoFlow may have optimal runtime complexity for this class of algorithm. Runtime unit in seconds. The datasets are real world graphs taken from [26,27,28].
Table 2. Benchmarking results for InfoFlow, on the Dell Precision T3610, for datasets that challenge the limit the computer resource. The runtime for graph reading and PageRank calculations are listed to add perspective on community detection speed. Importantly, the number of loops are very small, indicating logarithmic complexity, and that the community detection runtime is on the same order of magnitude as PageRank. Since the latter is a prerequisite for the map equation approach to community detection, InfoFlow may have optimal runtime complexity for this class of algorithm. Runtime unit in seconds. The datasets are real world graphs taken from [26,27,28].
NodesEdgesRead TimePageRank TimeInfoFlow
LoopsTime
50,515819,306633763
82,670133,445336468
325,7291,497,13491388420
281,9032,312,4972016051269
685,2301,600,5955144972618
1,632,80330,622,5642391298193816
3,744,76816,518,948139497113134
4,847,57168,993,77363595312021,540
9,845,72557,156,5375749531770,379
98,303100,245,742452118311437
5,154,85999,199,551207913,53189276

Share and Cite

MDPI and ACS Style

Fung, P.K. InfoFlow: A Distributed Algorithm to Detect Communities According to the Map Equation. Big Data Cogn. Comput. 2019, 3, 42. https://doi.org/10.3390/bdcc3030042

AMA Style

Fung PK. InfoFlow: A Distributed Algorithm to Detect Communities According to the Map Equation. Big Data and Cognitive Computing. 2019; 3(3):42. https://doi.org/10.3390/bdcc3030042

Chicago/Turabian Style

Fung, Park K. 2019. "InfoFlow: A Distributed Algorithm to Detect Communities According to the Map Equation" Big Data and Cognitive Computing 3, no. 3: 42. https://doi.org/10.3390/bdcc3030042

Article Metrics

Back to TopTop