Skip to content

Add temporal spectral community detection#94

Merged
wiheto merged 1 commit intowiheto:masterfrom
JacobH140:feature/spectraldcd
Dec 11, 2025
Merged

Add temporal spectral community detection#94
wiheto merged 1 commit intowiheto:masterfrom
JacobH140:feature/spectraldcd

Conversation

@JacobH140
Copy link
Contributor

@JacobH140 JacobH140 commented Nov 23, 2025

  • Implement as discussed the spectral method for temporal community detection outlined in this paper (teneto/communitydetection/spectral.py). Document in docs/teneto.communitydetection.rst.

  • New dependency: scikit-learn (used for KMeans and clustering
    metrics) declared in requirements.txt and setup.py

  • Testing: pytest test/communitydetection/test_temporal_spectral.py

  • Other: switched from m2r to myst_parser for docs (the former breaks on newer Sphinx versions). Require matplotlib >= 3.8 (also to make Sphinx happy)

Copy link
Owner

@wiheto wiheto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally makes sense. The algorithm and everything looks cool. COuld you just clarify some of the document config changes.

'sphinx.ext.githubpages',
'sphinx.ext.napoleon',
'm2r',
'myst_parser',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whats the purpose of adding this in the documents?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'matplotlib.sphinxext.only_directives',
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure why this being removed? Was it redundant?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I believe it is redundant, and indeed removed as of Matplotlib 3.0. I had to drop the extension to build the docs.

@JacobH140 JacobH140 requested a review from wiheto December 4, 2025 13:22
@wiheto
Copy link
Owner

wiheto commented Dec 11, 2025

Seems good. Thanks for clarifying all the other changes. Let's get this merged.

@wiheto wiheto merged commit b8d83e8 into wiheto:master Dec 11, 2025
1 check failed
@JacobH140 JacobH140 deleted the feature/spectraldcd branch December 11, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants