AIMech AI

Newman greedy modularity algorithm

Algorithms AIMech:NewmanGreedyModularity DRAFT
Aliases: Newman fast community detection, Newman agglomerative modularity
Newman’s direct edge-fraction-matrix algorithm for greedy agglomerative community detection, which starts with singleton vertices, joins adjacent communities using modularity changes, updates the matrix by combining their rows and columns, and selects a maximum-modularity cut along the resulting merge history.
Identity Notes & Concept Scope Compared all 442 pinned AIO and 673 native IDs, names, aliases and scoped synonyms before either cohort write; no normalized identity match. Ignored- and hidden-inclusive searches of all three checkouts returned 6,0,0 lines for the original Newman method. All six public lines were read and only name the source in the CNM discovery report. Semantic assessment covered 46 AIO and 268 native definitions; all 46 AIO and 267 prior native rows were unchanged and the new CNM definition and entire record were read. Sixteen complete AIO node/edge/generated contexts were verified unchanged and mapping rationales reassessed. Both cohort drafts were compared for distinct merge versus deletion mechanisms. Retain the original Newman direct matrix-update procedure as the predecessor algorithmic variant of CNM. Both share modularity and greedy agglomeration; the distinguishing maintained scope is explicit matrix recomputation versus sparse cached-gain/maxima structures, with distinct stated runtime bounds. It is not the Girvan–Newman edge-removal algorithm, a generic modularity objective, or the 2008 hierarchical random-graph model.

Claims & Grounded Evidence

7 Claims
Mechanism #edge-fraction-convention
Using the symmetric accounting convention in the source, each edge between different communities contributes half of its normalized weight to each orientation of the edge-fraction matrix, while an internal edge contributes wholly to its diagonal entry. Row sums give community degree fractions. Modularity is the sum of diagonal edge fractions minus squared row sums, and joining two groups changes it by twice their cross fraction minus twice the product of their row sums.
Mechanism #direct-matrix-agglomeration
The procedure evaluates adjacent community pairs and chooses the greatest modularity increase or smallest decrease, then combines the corresponding matrix rows and columns. The dendrogram records the joins; a best encountered cut is selected by modularity. Vertices in different connected components are not joined, as the paper explicitly notes. Sparse candidate restriction therefore does not imply that disconnected data acquire a single root.
Scope #cnm-and-runtime-boundary
The direct matrix-update method has the stated worst-case bound O((m+n)n), with m edges and n vertices; the quadratic specialization assumes sparsity. The later Clauset–Newman–Moore method retains the modularity objective and greedy merge structure while maintaining sparse modularity-change rows and maximum-tracking data structures. This record identifies the earlier matrix-update method, not every greedy modularity implementation or a new objective distinct from CNM.
Limitation #greedy-optimality-boundary
Maximal modularity along the greedy trajectory is not guaranteed to be maximal over all graph partitions. In an exact symmetric-fraction reference calculation on a six-vertex path with fixed lexicographic ties, the best greedy cut scores thirteen fiftieths, while the feasible partition into two consecutive triples scores three tenths. The calculation is a finite example and does not execute author software or identify every possible tie outcome.
Scope #recursive-subgraph-boundary
The collaboration example reruns the method on selected communities to reveal finer structure. Such a rerun recalculates edge fractions and degree terms on the selected subgraph; it is not merely a different cut of one fixed full-network dendrogram. In the constructed path example, the gain for joining the same first two vertices is four twenty-fifths in the full six-vertex graph and one quarter in its induced three-vertex path.
Scope #weighted-extension-boundary
The paper proposes a weighted generalization but evaluates unweighted networks. Interpreting the objective through normalized edge fractions preserves it under multiplication of all nonnegative edge weights by the same positive constant. Raw edge strengths without normalization are not interchangeable with those fractions. This record does not establish signed-weight conventions or performance for the untested weighted extension.
Scope #evaluation-scope
The reported accuracy and speed tradeoff depends on the test. The four-group synthetic benchmark compares recovery at varying external degree; the football example merges several known conferences, while the karate-club and collaboration examples provide other forms of comparison. The large collaboration analysis uses the largest connected component, and its multi-year Girvan–Newman timing comparison is an estimate. These cases do not establish universal recovery, a universal modularity significance threshold or a hardware-independent speed ratio.

⚠️ Curated Limitations & Negative Results

Artificial Intelligence Ontology (AIO) Grounding

Mapped AIO Classes
AIO Target Class Mapping Relation Mapping Rationale
AIO:HierarchicalClustering
Hierarchical Clustering
related_match The matrix-update algorithm builds an agglomerative hierarchy of graph-vertex groups. The target is a related task rather than an equivalent algorithm or asserted superclass.
AIO:UnsupervisedClustering
Unsupervised Clustering
related_match Groups are derived from graph topology and modularity rather than supplied class labels. This relates an algorithm to a task without equating their identities.

Evidence Sources & Primary Literature

2 Sources
Source ID Publication / Document Type / Access Reference & Checksum
newman2003
M. E. J. Newman
primary paper
full_text
ID: arxiv:cond-mat/0309508v1
sha256:cde52f64d9f0…
clauset2004
Aaron Clauset, M. E. J. Newman, Cristopher Moore
primary paper
full_text
ID: arxiv:cond-mat/0408187v2
sha256:a0f3adfe111b…

Curation Provenance

Curator: Codex
Method: ai_assisted
Model: GPT-6
Created: 2026-10-14T01:53:32Z
Updated: 2026-10-14T01:53:32Z
Source File: data/curated/NewmanGreedyModularity.yaml