Skip to content

More improvements#906

Merged
SkBlaz merged 4 commits intomasterfrom
some-improvements-and-checks
Dec 16, 2025
Merged

More improvements#906
SkBlaz merged 4 commits intomasterfrom
some-improvements-and-checks

Conversation

@SkBlaz
Copy link
Copy Markdown
Owner

@SkBlaz SkBlaz commented Dec 16, 2025

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request modernizes examples and adds test coverage improvements across the py3plex codebase. The changes focus on making examples more maintainable, adding deterministic behavior through seeding, and improving robustness of edge-case handling in core functionality.

Key Changes:

  • Added robustness centrality edge-case tests (disconnected graphs, missing layers)
  • Implemented temporal range filtering in DSL executor
  • Fixed multiplex edge filtering bug in get_edges()
  • Modernized 50+ example scripts to use main() -> int + raise SystemExit(main()) pattern
  • Added deterministic seeding throughout examples for reproducibility

Reviewed changes

Copilot reviewed 65 out of 76 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/test_centrality_robustness_additional.py Adds 3 edge-case tests for robustness centrality (disconnected nodes, bridge removal, missing layers)
py3plex/dsl/executor.py Implements temporal_range special predicate for temporal queries
py3plex/core/multinet.py Fixes coupling edge detection bug + refactors _generic_edge_dict_manipulator
py3plex/comparison/metrics.py Adds layer filtering to multiplex_jaccard
py3plex/datasets/_generators.py Ensures all nodes exist in all layers for multiplex networks
py3plex/centrality/robustness.py Handles inf+inf edge cases to avoid NaN in robustness scores
examples/* (50+ files) Modernizes to main()/SystemExit pattern, adds type hints, seeds randomness, improves error handling
examples/dynamics/README.md Documents matplotlib backend and output directory conventions

Comment thread examples/communities/example_leiden_multilayer.py Outdated
import sys
import tempfile
from pathlib import Path
from typing import Optional
Copy link

Copilot AI Dec 16, 2025

Choose a reason for hiding this comment

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

Import of 'Optional' is not used.

Copilot uses AI. Check for mistakes.
Comment thread examples/dsl_query_zoo/queries.py Outdated
Comment thread examples/dsl_query_zoo/queries.py Outdated
SkBlaz and others added 3 commits December 16, 2025 12:01
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@SkBlaz SkBlaz merged commit db8cd57 into master Dec 16, 2025
31 checks passed
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