<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>RECCS: REALISTIC CLUSTER CONNECTIVITY SIMULATOR FOR SYNTHETIC NETWORK GENERATION</title></titleStmt>
			<publicationStmt>
				<publisher>World Scientific</publisher>
				<date>08/01/2025</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10675140</idno>
					<idno type="doi">10.1142/S0219525925400041</idno>
					<title level='j'>Advances in Complex Systems</title>
<idno>0219-5259</idno>
<biblScope unit="volume">28</biblScope>
<biblScope unit="issue">05</biblScope>					

					<author>LAHARI ANNE</author><author>THE-ANH VU-LE</author><author>MINHYUK PARK</author><author>TANDY WARNOW</author><author>GEORGE CHACKO</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[<p>The limited availability of useful ground-truth communities in real-world networks presents a challenge to evaluating and selecting a “best” community detection method for a given network or family of networks. The use of comparable synthetic networks with planted ground-truths is one way to address this challenge. While several synthetic network generators can be used for this purpose, Stochastic Block Models (SBMs), when provided input parameters from real-world networks and clusterings, are well suited to producing networks that retain the properties of the network they are intended to model. We report, however, that SBMs can produce disconnected ground truth clusters; even under conditions where the input clusters are connected. In this study, we describe the REalistic Cluster Connectivity Simulator (RECCS), which, while retaining approximately the same quality for other network and cluster parameters, creates an SBM synthetic network and then modifies it to ensure an improved fit to cluster connectivity. We report results using parameters obtained from clustered real-world networks ranging up to 13.9 million nodes in size, and demonstrate an improvement over the unmodified use of SBMs for network generation.</p>]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>Community detection methods uncover the meso-scale structure of networks, where communities are groups of nodes that display distinct structural and connectivity patterns. These groups or clusters are typically characterized by high internal density, separation from the rest of the network, and strong internal edge connectivity <ref type="bibr">[3,</ref><ref type="bibr">4,</ref><ref type="bibr">13,</ref><ref type="bibr">19]</ref>.</p><p>A large number of community detection methods are available <ref type="bibr">[2,</ref><ref type="bibr">6]</ref>. However, selecting a community detection method for a given application can be challenging since real-world networks are rarely annotated with relevant \ground truth" communities. Instead, researchers rely on synthetically generated networks with planted ground-truths <ref type="bibr">[12,</ref><ref type="bibr">14,</ref><ref type="bibr">24]</ref> that enable comparisons between clustering methods. For this purpose, several synthetic network generators, such as Stochastic Block Models (SBM) <ref type="bibr">[15,</ref><ref type="bibr">16]</ref>, LFR <ref type="bibr">[9]</ref>, ABCD and ABCD+o <ref type="bibr">[7,</ref><ref type="bibr">8]</ref>, and nPSO <ref type="bibr">[11]</ref>, have been developed.</p><p>Synthetic networks should exhibit the structural and clustering properties of the real-world networks they are intended to model <ref type="bibr">[11,</ref><ref type="bibr">20]</ref>. In this respect, Viger and Latapy <ref type="bibr">[21]</ref> achieved e&#177;ciency in modeling degree sequences and generating connected graphs but did not address community structure. Deep learning approaches such as GraphRNN <ref type="bibr">[23]</ref> face challenges in scaling to large networks. Stochastic Block Models (SBMs) implemented in graph-tool <ref type="bibr">[15]</ref> &#192; &#192; &#192; referred to as SBMs hereinafter &#192; &#192; &#192; aim to enable the reproduction of intra-and inter-cluster relationships and have been shown to be highly scalable <ref type="bibr">[16]</ref>. Furthermore, SBMs have been shown to replicate key network characteristics, such as degree distribution, clustering coe&#177;cients, and network diameter <ref type="bibr">[20]</ref>. Nevertheless, limited work has been conducted on assessing how well the ground truth clusterings generated by SBMs align with those in real-world networks, including whether SBMs accurately re&#176;ect portions of the network being unclustered (equivalently, nodes that are in singleton clusters, and can be referred to as outlier nodes).</p><p>In a prior study <ref type="bibr">[1]</ref>, we reported that SBMs often produce disconnected ground truth clusters, even when the input parameters are obtained from networks clustered using methods that are guaranteed to produce connected clusters. To address this limitation, we introduced the \REalistic Cluster Connectivity Simulator" (RECCS), a two-step framework that remediates the edge connectivity of clusters generated by SBMs and generally preserves other network properties.</p><p>Given a clustered network, RECCS comprises two steps. In the &#175;rst step, it produces an SBM that models the clustered portion of the network, aiming to reproduce the edge connectivity of the input network. In the second step, outlier nodes are added to the SBM.</p><p>In <ref type="bibr">[1]</ref>, we examined two ways of accomplishing the &#175;rst step and three ways of performing the second step. We found that both ways of varying Step 1, which models the clustered subnetwork, were improvements over a naive use of the SBM software; in addition, each had strengths relative to the other, making them both of further interest. We also compared three ways of adding the unclustered (outlier) nodes into the SBM network produced during the &#175;rst step, and found that only one provided excellent &#175;t to the real-world network statistics.</p><p>Here, we provide an extended study of RECCS. Leveraging results from <ref type="bibr">[1]</ref>, we focus on just one way of handling outliers, so that we propose and study two variants of RECCS that di&#174;er only in how they model the clustered subnetwork. We performed additional experiments to evaluate these two versions of RECCS, and include results on nine new clustered networks for input parameters. For these new test networks, the clustering method used to provide the input parameters includes the Connectivity Modi&#175;er (CM) <ref type="bibr">[13]</ref>, which post-processes clusters to enforce well-connectedness, on the input clustering used to generate SBMs. We evaluate clustering methods for accuracy with respect to recovery of ground truth clusters using synthetic networks generated by RECCS. We conduct replication experiments, testing RECCS across multiple runs with the same and di&#174;erent SBM base networks. Finally, we provide runtime metrics for RECCS under various conditions.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Materials and Methods</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1.">RECCS pipeline</head><p>We use RECCS within a pipeline that begins with a real-world network G and a clustering C of G. Any node in the graph that is not in a cluster of size at least two is considered an \outlier" node, and the other nodes are considered \clustered" nodes. The subnetwork induced by the clustered nodes, and so containing only those edges that go between clustered nodes, is referred to as G c .</p><p>We compute the edge connectivity of each cluster, de&#175;ned as follows. Given a cluster C of nodes in G, an edge cut for C is a subset of edges connecting nodes in C so that when that set of edges is removed, C splits into two or more parts. The number of edges in the smallest edge cut is the edge connectivity of the cluster C. Thus, if C is internally disconnected, its edge connectivity is 0, and otherwise the edge connectivity is at least 1. We refer to the edge connectivity of cluster C by k&#240;C&#222;. Given the context, we often refer to this as the \connectivity" of C.</p><p>Given the clustering C of the network G, we compute G c , and for this subnetwork we compute the degree sequence, the assignment of nodes to non-singleton clusters, the edge count matrix that de&#175;nes the number of edges within each cluster and between every pair of clusters, and the edge connectivity of each cluster. We refer to this set of parameters by Param&#240;G c ; C&#222;.</p><p>In our experiments, we have noticed that SBMs often produce extra edges in the form of self-loops and parallel edges. Since our objective is to return a simple graph, we always follow the construction of an SBM by a step where we remove the selfloops and excess edges. This gives us the opportunity to add back edges that improve the &#175;t to the cluster edge connectivity and other parameters, as desired.</p><p>The algorithmic structure of RECCS (Fig. <ref type="figure">1</ref>) has three steps.</p><p>Step 1 produces a synthetic network that models the clustered subnetwork so that all edges are between clustered nodes, and Step 2 produces a synthetic network that addresses the outliers. In Step 3, the two networks from Steps 1 and 2 are then superimposed to produce the &#175;nal returned network.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1.1.">Step 1 of RECCS: Modeling the clustered subnetwork</head><p>Step 1 of RECCS has &#175;ve stages, where the &#175;rst four stages are concerned with edge connectivity and the &#175;nal stage is concerned with improving the &#175;t to the degree sequence. The high-level description of Step 1 is as follows:</p><p>. Stage 0: Construct SBM. We construct an SBM under the degree-corrected model for the parameter set Param&#240;G c ; C&#222; using graph-tool. We then remove excess edges. We refer to this network as N c . Note that this network models the clustered subnetwork G c of G.</p><p>In Steps 1 and 2, we add edges to the SBM constructed in Step 0, in order to improve the &#175;t to the degree sequence and min cut size. These additions are performed using uniform random selection, except when the addition is deterministic (as is the case for Stage 4, version 1).</p><p>. Stage 1: Enforce minimum degree. Here we add edges to ensure that every node has at least k&#240;C&#222; neighbors in the cluster. Speci&#175;cally, for a cluster with a required minimum cut size of k&#240;C&#222;, each node within the cluster should have at least k&#240;C&#222; edges to nodes within the same cluster. Therefore, if a node v has d &lt; k&#240;C&#222; neighbors in the cluster, we add k&#240;C&#222;-d edges between v and other nodes in the cluster to which it is not adjacent. . Stage 2: Ensure connected clusters. If a cluster C is disconnected, we add k&#240;C&#222; edges at random between its largest component and each of the other components.</p><p>. Stage 3: Ensure edge connectivity at least k&#240;C&#222;. This stage is an iterative method that ensures that the cluster C has edge connectivity at least k&#240;C&#222;. Spe-ci&#175;cally, we use VieCut <ref type="bibr">[5]</ref> to calculate the size of a minimum edge cut; if this size is at least k&#240;C&#222;, then we stop (the cluster is su&#177;ciently well connected). Otherwise, we identify the two parts of the cluster that are connected by fewer than k&#240;C&#222; edges, and we add edges between the two parts to achieve k&#240;C&#222;. We then repeat the process until the minimum cut size of the cluster is greater than k&#240;C&#222;.</p><p>. Stage 4: Improve vertex degree &#175;t. During this stage, edges are added to improve the &#175;t to the target degree sequence.</p><p>During the development of RECCS, we explored two di&#174;erent techniques for Stage 4; the results of these explorations are reported in Sec. 3.2, and show that both techniques were reasonable, each providing an improvement over the initial SBM but neither dominating the other.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1.2.">Step 2 of RECCS: Modeling outliers</head><p>Recall that we begin with a given real-world network G and its clustering C, and that Step 1 produces a synthetic network to model the clustered subnetwork. In Step 2, we wish to add the outlier nodes into the synthetic network, where the outlier nodes are those that were not in any non-singleton cluster.</p><p>We achieve this by creating a synthetic network for the subnetwork G &#195; that includes only edges involving at least one outlier node, referred to as \outlier edges". These edges either connect two outlier nodes or an outlier node with a clustered node.</p><p>Importantly, G &#195; includes both clustered and outlier nodes and retains the same cluster structure as C. However, there are no edges within any non-singleton cluster or between non-singleton clusters in G &#195; .</p><p>We create a synthetic network N &#195; using the parameters for G &#195; as follows. Each outlier node is treated as a singleton cluster. Thus, if there are k outliers and L nonsingleton clusters, the SBM input will include L &#254; k clusters in total. The edge count matrix speci&#175;es the number of edges between any two clusters (including the singleton clusters). Note that the edge count matrix entry for two singleton clusters is either 1 or 0, depending on whether the two nodes are adjacent.</p><p>Note that this method exactly reproduces the edges between outliers (as they belong to singleton clusters) and matches the speci&#175;ed number of edges between singleton clusters (outliers) and non-singleton clusters. However, edges between outlier nodes and clustered nodes are randomly assigned. We then remove all excess edges (self-loops or parallel edges), thus producing a simple graph that models the outliers.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1.3.">Step 3 of RECCS: Merging</head><p>Finally, the synthetic networks generated in Steps 1 and 2 are combined into a single network. This merging process is straightforward, as the node labelings in both synthetic networks are consistent with those in G.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2.">Running time</head><p>Here we provide a big-O analysis of the runtime of the RECCS pipeline; see the Supplementary Materials document for the proof.</p><p>Theorem 1. The total runtime for RECCS, including computing the SBM for the clustered subnetwork, is &#213;&#240;jV j 2 &#240;jEj &#254; KjV j&#222; &#254; jE 0 j&#222;, where V is the set of clustered nodes, E is the edge set for the clustered subnetwork, E 0 is the edge set for the outlier subnetwork, K is the maximum edge connectivity for any cluster, and &#213; hides the log factors.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3.">Experimental study</head><p>We generated synthetic networks using variants of RECCS and SBM, each based on empirical statistics from clustered real-world networks. Each clustered real-world network was used either in a development phase or in a testing phase, and is labeled as such.</p><p>We computed the similarity of RECCS networks to the clustered real-world networks using a number of di&#174;erent statistics. We also report performance data of RECCS. Finally, we studied the accuracy of di&#174;erent clustering methods on RECCS synthetic networks using the NMI and ARI accuracy measures.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.4.">Datasets</head><p>The development dataset has 110 clustered networks and the testing dataset consists of 9 networks clustered using a variety of methods. These datasets encompass a wide variety of real-world network types.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.4.1.">Clustering</head><p>Each real-world network was clustered using several methods, including the Leiden algorithm <ref type="bibr">[19]</ref> optimizing either the Constant Potts Model (CPM) with a range of resolution parameters or optimizing Modularity, the Iterative k-core method (IKC) <ref type="bibr">[22]</ref>, or Infomap <ref type="bibr">[18]</ref>. Each of these clustering methods is either guaranteed to produce connected clusters (e.g. Leiden) or post-processed to return the components if they are not so guaranteed (e.g. IKC and.Infomap). In some cases, these clustering methods were followed by a post-processing technique to ensure that the clusters were well-connected. To achieve this, we used the Connectivity Modi&#175;er (CM) <ref type="bibr">[13]</ref>,</p><p>which enforces an edge-connectivity of greater than log 10 &#240;n C &#222;, where n C represents the number of nodes in the cluster. Clustering was performed both with and without the CM post-processing step.</p><p>During the development phase, we &#175;ltered out (i.e. removed) very small clusters (those having at most 10 nodes) when using CM. During the evaluation phase, we did not &#175;lter out the small clusters when using CM; this change allowed us to avoid overlooking any e&#174;ects restricted to very small clusters.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.4.2.">Primary dataset: 110 real-world networks</head><p>The primary dataset consists of 110 undirected real-world networks, of which 104 networks were sourced from the Netzschleuder catalog <ref type="bibr">[17]</ref> (see Supplementary Materials for list of networks). These 104 networks vary in size, ranging from 900 to 1,402,673 nodes, and from 2400 to 17,233,144 edges.</p><p>Six other networks were included, and are listed below; these were used as benchmarks by us <ref type="bibr">[13]</ref>, with &#175;ve available in the SNAP repository <ref type="bibr">[10]</ref> and the sixth generated by us <ref type="bibr">[22]</ref>.</p><p>. Cit-Hepph . Cit-Patents . Orkut . Wiki-Topcats . Wiki-Talk . Curated Exosome Network (CEN).</p><p>These six networks vary in size, with node counts ranging from 34,546 to 13,989,436 and edge counts ranging from 420,877 to 117,185,083.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.4.3.">Development dataset</head><p>For development, all 110 networks in the primary dataset were clustered using Leiden optimizing CPM with a resolution parameter r &#188; 0:001 <ref type="bibr">[19]</ref>, followed by postprocessing (see above) to ensure that all clusters are well-connected, and also all clusters with at most 10 nodes are deleted. These clustered networks were then used during the algorithm design phase.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.4.4.">Testing set</head><p>We have two collections of clustered networks, Testing 1 and Testing 2, that we used in our evaluation of RECCSv1 and RECCSv2, in comparison to SBM.</p><p>The real-world networks for Testing 1 are the same six benchmark networks from the SNAP repository from the primary dataset, but clustered di&#174;erently than for the Development dataset. These networks were clustered using Leiden optimizing CPM (r &#188; 0:01; a di&#174;erent resolution from the r &#188; 0:001 used during development), Leiden optimizing Modularity, and Iterative k-Core (IKC) <ref type="bibr">[22]</ref> with k &#188; 10, followed by post-processing (see above).</p><p>The real-world networks for Testing 2 are taken from SNAP but are not in the primary dataset:</p><p>. gemsec-Facebook (artist edges) . com-Amazon . com-LiveJournal (com-lj edges) . com-Youtube . gemsec-Deezer (HR edges) . twitch-gamers (large twitch edges) . musae-github . soc-Pokec . ego-Twitter. These networks range in number of nodes ranging from 37,700 to nearly 4 million and number of edges ranging from 289,003 to over 34 million. Each network in this dataset was clustered using multiple methods, including Leiden optimizing CPM (with a resolution parameter r &#188; 0:01), Leiden optimizing Modularity, Iterative k-core (IKC) with k &#188; 10, and Infomap <ref type="bibr">[18]</ref>. These clusterings were performed both with and without the post-processing step described above.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.5.">Evaluation criteria</head><p>We evaluate the &#175;t between the synthetic network with its associated ground truth clustering and the input clustered real-world network using a combination of scalar and sequence statistics computed on these networks given in Table <ref type="table">1</ref>. Some statistics, such as degree sequence, global and local clustering coe&#177;cients, and diameter describe network properties, while others, such as minimum edge cut size and mixing parameter, concern cluster properties.</p><p>We denote a statistic for the real-world network by s and its corresponding statistic for the synthetic network by s 0 . For statistics that are scalars (i.e. real-valued) and bounded between 0 and 1, we use the simple di&#174;erence (Eq. ( <ref type="formula">1</ref>)). For scalar statistics that are not bounded by 0; 1, we use the relative distance (Eq. ( <ref type="formula">2</ref>)).</p><p>For those statistics that are sequences (e.g. the degree sequence, minimum edge cut size for the clusters), we let the ith entries be denoted by s i and s 0 i , and we assume that the sequences are of length n. For these comparisons, we use the Root Mean Square Error (RMSE), given by Eq. ( <ref type="formula">3</ref>)</p><p>Finally, we also evaluate the &#175;t between two networks using a holistic criterion: the normalized edit distance, which is the number of edges in one network and not in the other. This is enabled since there is a bijection between the node sets of the synthetic networks and the real-world networks.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Results and Discussion</head><p>Results are presented in the following six sections.</p><p>. Experiment 1: Evaluating SBM networks . Experiment 2: Designing RECCS . Experiment 3: Evaluating RECCS . Experiment 4: Evaluating clustering methods on RECCS networks . Experiment 5: Replication . Experiment 6: Evaluating computational performance for RECCS.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.">Experiment 1: Evaluating SBM networks</head><p>We evaluated SBMs generated under the degree-corrected model on the Development datasets, which are clustered real-world networks where all the clusters are guaranteed to be well-connected (Sec. 2.4). Strikingly, more than 50% of these SBM networks contain at least 40% disconnected clusters, and both bipartite and nonbipartite networks show this trend (Fig. <ref type="figure">2</ref>). Thus, ground truth clusters in SBM synthetic networks generated from clustered real-world networks do not meet minimal expectations of edge-connectivity for clusters. This &#175;nding is in contrast to the high accuracy of SBMs with respect to network properties such as diameter, degree sequence, and clustering coe&#177;cient, reported in <ref type="bibr">[20]</ref>. These observations motivate the development of RECCS and the remainder of this study.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.">Experiment 2: Designing RECCS</head><p>Recall that we are given a target degree for every node from G c , but the synthetic network N may not achieve this degree for some nodes. Those nodes whose current degree is less than the target degree are said to be \nodes with available degree". At each stage of Step 1, we add edges in order to improve the edge connectivity or &#175;t to the degree. These edge additions will reduce the \available degree" of a given node, which will reach 0 when its current degree is exactly the target degree. In Stage 4, we have two versions that attempt to add more edges in order to improve the &#175;t to the degree sequence:</p><p>. v1: for each node with available degree, we add edges to other nodes with available degree, following Algorithm 1.</p><p>. v2: edges are strategically added to nodes with available degrees, taking into account the number of inter-cluster and intra-cluster edges in the input subgraph G c . This approach, detailed in Algorithm 2, restricts the addition of edges to not exceed the expected number of inter-cluster edges.</p><p>We compare RECCSv1 and RECCSv2 restricted to Step 1 in Fig. <ref type="figure">3</ref> with respect to the metrics discussed in Sec. 2.5 on the 110 clustered real-world networks in the development dataset. Because we only perform Step 1, the evaluation is performed with respect to reproducing features of the clustered subnetwork. Both versions of RECCS have a better &#175;t than SBM for the minimum edge cuts sequence, showing Fig. <ref type="figure">2</ref>. Proportion of disconnected clusters observed in SBM synthetic networks. There are 30 bipartite networks ranging from 135 to 302,745 nodes and 80 non-bipartite networks ranging from 552 to 337,7185 nodes, both size ranges reported for clustered subnetworks. SBMs were created using the Development dataset, which are based on parameters from these real-world networks clustered with the Leiden algorithm optimizing CPM at r &#188; 0:001+CM with small clusters removed. This &#175;gure demonstrates that SBMs synthetic networks have many disconnected clusters (considering only non-singleton clusters) for these conditions, and for both bipartite and non-bipartite networks.</p><p>that the main goal of RECCS is achieved well by both variants. For the other criteria, the di&#174;erences between the three simulators are too small to be considered meaningful.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3.">Experiment 3: Evaluation on test data</head><p>In this experiment, we compare RECCSv1, RECCSv2, and SBM synthetic networks on test data. Unlike Experiment 2, these evaluations are performed with respect to the accuracy of the full network, not just the clustered subnetwork.</p><p>We &#175;rst evaluate how well each method reproduces features of the input clustered real-world networks, according to the evaluation criteria. This evaluation is done on the two di&#174;erent testing datasets, Testing 1 and Testing 2.</p><p>Since an exact copy of the clustered real-world network is not the objective, we also verify that the synthetic networks are di&#174;erent from the real-world networks by calculating the normalized edit distance, which is the number of edge modi&#175;cations (addition or deletion) needed to transform one network into the other, then normalized by the number of edges in the real-world network. This evaluation is done on the Testing 1 dataset.</p><p>Accuracy on Testing 1 dataset. The clustered networks in the test data, shown in Fig. <ref type="figure">4</ref>, are based on three di&#174;erent clustering methods, each post-processed to ensure well-connected clusters. Across all three clusterings, both RECCSv1 and RECCSv2 demonstrate improvements over SBM in terms of the minimum edge cut size. This is consistent with observations on the development data, and is expected.</p><p>The di&#174;erences between methods are smaller for the other criteria, but some are worth noting. Speci&#175;cally, for degree sequence, RECCSv1 has the best &#175;t, followed by RECCSv2, and then &#175;nally by SBM. For diameter, RECCSv2 has a better &#175;t Fig. <ref type="figure">3</ref>. Experiment 2: Comparing RECCS (v1 and v2) to SBM networks with respect to similarity to the clustered subnetworks. Both RECCS v1 and v2 show improvements over cluster edge-connectivity compared to SBM networks. The y-axis lists various distance metrics for network properties. For clustering coe&#177;cients, ratios, and mixing parameters, the simple scalar di&#174;erence is reported. Relative di&#174;erences are shown for network diameter, and RMSE is used for the degree sequence and minimum edge cut sequence. This experiment was conducted on the development networks. We explore three clusterings: Leiden-CPM with r &#188; 0:01 (top row), Leiden-modularity (middle row), and the Iterative k-core (IKC) method (bottom row), each followed by post-processing using CM.</p><p>than RECCSv1, but neither version is reliably better than SBM. For outlier degree sequence and number of edges between outliers and clustered nodes, SBM is better than both RECCS variants. For the remaining criteria (i.e. mixing parameter, global clustering coe&#177;cient, and mean local clustering coe&#177;cient) the di&#174;erences between methods are too small to be meaningful. Overall, therefore, the three methods are very close for most criteria other than edge cut size, where both RECCSv1 and v2 are much better than SBM.</p><p>Accuracy on the Testing 2 dataset. We next examined results on the Testing 2 dataset. All clusterings in this set have connected clusters, but in this experiment we compare results when the clustering method is performed with and without the CM post-processing step.</p><p>The results of this experiment, shown in Fig. <ref type="figure">5</ref>, permit several observations regarding the performance of SBM and the two RECCS pipelines across di&#174;erent input clustering methods.</p><p>Across all three basic input clusterings and whether or not post-processed by CM, we again see that both RECCSv1 and RECCSv2 have a better &#175;t to the minimum edge cut sequence than SBM. We also see that RECCSv1 has a better &#175;t to degree sequence than the other methods, and that RECCSv2 is slightly better than SBM.</p><p>Results on diameter are mixed, with no method outperforming any other, although possibly RECCSv2 can be considered to be the best performing of the three Fig. <ref type="figure">5</ref>. Accuracy of SBM, RECCSv1, and RECCSv2 on the Testing 2 dataset. The Testing 2 dataset has nine networks clustered with four methods: Leiden-CPM with r &#188; 0:01 (top row), Leidenmodularity (second row), the Iterative k-core (IKC) method with k &#188; 10 (third row), and Infomap (bottom row). The \CM" in the legend indicates that the input clustering includes a post-processing step to ensure that the clusters are well-connected. The y-axis shows di&#174;erent distance metrics for various network properties. All clustering methods other than IKC returned at least one non-singleton cluster on each real-world network; however, IKC k &#188; 10 returned 0 clusters for com-Amazon, so that network is excluded from results for IKC. methods. All methods have very similar scores for the local clustering coe&#177;cients, global clustering coe&#177;cients, and mixing parameters, but with a small advantage to RECCSv2 over the other methods. When the input clustering parameters come from clusterings post-processed with CM, accuracy measurements generally improve for all methods and criteria, with very dramatic improvements for diameter and mean local clustering coe&#177;cient. This trend suggests that networks that have well-connected clusters are easier to model using RECCS.</p><p>Edit distance to the real-world network. We evaluated the normalized edit distance between the real-world network and the synthetic networks generated by the two RECCS pipelines and the unmodi&#175;ed SBM. This metric calculates the number of edge modi&#175;cations (additions or deletions) required to transform the realworld network into the synthetic network, normalized by the total number of edges in the real-world network.</p><p>For the six test networks, SBM and RECCSv2 showed similar performance, while RECCSv2 consistently produced synthetic networks with a smaller normalized edit distance compared to RECCSv1 (Fig. <ref type="figure">6</ref>). Notably, with a maximum possible normalized edit distance of 2:0, the results indicate that for all but one network, the generated synthetic networks exhibit su&#177;cient randomness to exclude being labeled as replicates of the input.</p><p>In summary, Experiment 3 shows that both RECCS pipelines improve upon SBM in terms of cluster edge connectivity. Di&#174;erences between RECCSv1, RECCSv2, and SBM are generally small for the other criteria, but some di&#174;erences between the two RECCS variants are clear. Speci&#175;cally, RECCSv1 has better accuracy with respect to reproducing the degree sequence, while RECCSv2 performs better for modeling diameter and the mixing parameter. Finally, all three methods produce networks that di&#174;er from the six Testing 1 real-world networks, as evidence from the graph edit distance, but the di&#174;erences range from very small on the wiki talk network to relatively large on the other networks we studied. Fig. <ref type="figure">6</ref>. Comparing SBM, RECCSv1, and RECCSv2 with respect to the normalized edit distance between synthetic and real-world networks. The normalized edit distance between the edge sets of the true network G and the synthetic network N, i.e. jE&#240;G&#222;4E&#240;N&#222;j jE&#240;G&#222;j , where 4 denotes the symmetric di&#174;erence, and so the maximum possible value is 2:0. Each real-world network is clustered using Leiden-CPM, with r &#188; 0:01. Here, RECCSv2 produces synthetic networks that are closer to the real-world network than RECCSv1, and about as close as SBM networks. This experiment is on the test data.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4.">Experiment 4: Comparing clustering methods on RECCS networks</head><p>This experiment evaluates clustering methods in terms of ability to &#175;nd the ground truth clusters in RECCSv1 networks. We use the Testing 2 dataset for this experiment, which includes nine real-world networks clustered using four di&#174;erent clustering methods, but without CM postprocessing. These input parameters are given to RECCSv1 to create the synthetic ground truth clusters.</p><p>Each synthetic RECCS network is clustered using eight di&#174;erent clustering methods, de&#175;ned by the same four basic techniques (Leiden-CPM(0.01), Leidenmod, IKC, and Infomap), but in this case each with or without CM post-processing.</p><p>Accuracy with respect to recovering the ground truth communities is assessed using NMI (Fig. <ref type="figure">7</ref>) and ARI (Fig. <ref type="figure">8</ref>). In each &#175;gure, the left sub&#175;gure shows results when the clustering method used to cluster the RECCS network is performed without the CM post-processing treatment, and the right sub&#175;gure is for the case where the clustering is post-processed by CM. The rows in each &#175;gure correspond to the base clustering method (i.e. Infomap, IKC, Leiden-mod, and Leiden-CPM) used to provide input parameters to RECCS. The columns in each &#175;gure also correspond to the base clustering methods used to re-cluster the RECCSv1 network. Thus, each square in each sub&#175;gure de&#175;nes the pair of clustering methods, where the row indicates which method is used for parameter generation and the column indicates which method is used to cluster the synthetic network. Hence, squares down the diagonal in the left sub&#175;gure indicate that the same method is used in each case; squares down the diagonal in the right sub&#175;gure are for the case where the method used to re-cluster RECCS network is followed by CM treatment, although the method used to compute input to RECCS is not.</p><p>The re-clustering experiment provides the following insights, as illustrated in Figs. <ref type="figure">7</ref> and <ref type="figure">8</ref>.</p><p>. Fidelity with Input Clustering: Both NMI (Fig. <ref type="figure">7</ref>) and ARI (Fig. <ref type="figure">8</ref>) scores are highest when the re-clustering algorithm matches the original clustering algorithm used to compute the input parameters for RECCS. For instance, Leiden-CPM as the base clustering produces the best scores when re-clustered with Leiden-CPM.</p><p>. Similar outcomes for pairs: In these experiments, Leiden-mod and Infomap each do well on the same model conditions, and similarly Leiden-CPM(0.01) and IKC each do well on the same model conditions.</p><p>. Impact of CM Treatment: Using CM post-processing often improves NMI clustering accuracy but not ARI accuracy. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.5.">Experiment 5: Replication</head><p>The replication experiment evaluates the consistency and robustness of the RECCS framework in generating synthetic networks. For this experiment, the real-world Curated Exosome Network (CEN) with its 13,989,436 nodes and 92,051,051 edges was used as a single benchmark. We cluster the CEN using just one clustering method (Leiden-CPM(0.01)), with and without CM post-processing. For each SBM base network, RECCS was applied three times, and variability in the accuracy values was calculated. Table <ref type="table">2</ref> presents the results for key properties across synthetic networks generated by SBM, RECCSv1, and RECCSv2, with and without CM post-processing for input clustering. The standard deviations for RECCSv1 and RECCSv2 are very small across all network properties, demonstrating that the synthetic network quality measures are reliably similar between replicates on this input condition.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.6.">Experiment 6 results: Runtime for RECCS</head><p>This section analyzes the runtime of the RECCS framework on the largest Testing 2 network, com-LiveJournal, which has 3,997,962 nodes and 34,618,189 edges. Four di&#174;erent clustering methods were used, each with and without CM post-processing. Runtimes in minutes are shown in Table <ref type="table">3</ref>.</p><p>The runtimes for both RECCS versions vary signi&#175;cantly, and depend on the input clustering method, and whether CM post-processing is used. Of note, the comparison between the RECCS pipelines shows that typically RECCSv1 is slower than RECCSv2, but this is not always the case. For example, on one of the eight input conditions, RECCSv2 is slower. When the clusterings are not post-processed with CM, runtimes range from 47 min to 322 min for RECCSv1 and from 57 min to 259 min for RECCSv2. However, when clusterings are post-processed with CM, runtimes are faster, ranging from 44 min to 195 min for RECCSv1 and from 55 min to 143 min for RECCSv2. Thus, CM post-processing the input clustering reduces the time for both RECCS versions on all clusterings.</p><p>The results show that RECCS scales e&#174;ectively to large networks in the range of com-LiveJournal.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Conclusions</head><p>Synthetic networks with planted ground truths are a useful approach for evaluating community detection methods. Of these, SBM network generation implemented in graph-tool is a valuable tool for constructing synthetic networks that mimic realworld networks. In examining the properties of ground-truth clusters generated by SBMs, we observed a signi&#175;cant number of cases where these clusters were disconnected. In this study, the input to graph-tool for SBM construction was a real-world network clustered with di&#174;erent community detection algorithms, and the trend of disconnected clusters was seen even under conditions where the input clustering was guaranteed to be connected.</p><p>We developed RECCS, a meta-method, to remediate disconnected clusters. RECCS is embedded in a pipeline that takes a real-world network and a user-speci&#175;ed clustering, generates an SBM and modi&#175;es it to return a synthetic network complete with outlier nodes, node-to-node and cluster-to-cluster correspondence with the input, and comparable edge-connectivity. RECCS introduces randomness into intra-cluster and inter-cluster edges, thus achieving stochastic variance from the input. We demonstrate that RECCS is able to restore the minimum edge cuts of DC-SBM generated clusters to make them comparable to the input clusters. In our testing of RECCS, we demonstrate scalability to networks in the order of 14 million nodes. We also report on the replicability of results from RECCS networks, showing that network quality measures are reliably consistent between replicates.</p><p>We stress that RECCS is empirically motivated. In addition, we argue that RECCS provides value to practitioners in di&#174;erent domains who are presented with the challenge of identifying a suitable clustering technique for their investigations. RECCS networks are essentially stochastic variants of a given real-world network for which ground truths and comparable networks do not exist. We argue that all networks are not similar, therefore using a set of benchmark networks of diverse origin to evaluate a clustering method is useful.</p></div></body>
		</text>
</TEI>
