• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

code-shoily / yog_ex / 3ab957fd258bc4a4c7d5aeaa2e7c1019db068efb
93%

Build:
DEFAULT BRANCH: main
Ran 08 Jun 2026 09:43PM UTC
Jobs 1
Files 117
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Jun 2026 09:42PM UTC coverage: 93.011% (+0.06%) from 92.954%
3ab957fd258bc4a4c7d5aeaa2e7c1019db068efb

push

github

code-shoily
fix: eigenvector centrality no longer silently returns zeros on DAGs

On directed acyclic graphs (DAGs), eigenvector centrality is mathematically
ill-defined: the adjacency matrix is nilpotent, so the principal eigenvalue
is 0 and the principal eigenvector is the zero vector.

Previously, iterate_eigenvector/7 would converge to the all-zeros vector
without any indication to the caller. This is a silent failure mode that
produces uninformative rankings on common graph shapes like citation
networks, dependency graphs, and hierarchies.

Now, when the L2 norm becomes 0.0 during power iteration, we:
1. Log a warning explaining the degeneracy
2. Return a uniform distribution as a fallback
3. Document the behavior and recommend pagerank/2 or katz/2 for DAGs

Closes #137

12 of 12 new or added lines in 1 file covered. (100.0%)

10380 of 11160 relevant lines covered (93.01%)

8490.34 hits per line

Jobs
ID Job ID Ran Files Coverage
1 3ab957fd258bc4a4c7d5aeaa2e7c1019db068efb.1 08 Jun 2026 09:43PM UTC 117
93.01
GitHub Action Run
Source Files on build 3ab957fd258bc4a4c7d5aeaa2e7c1019db068efb
  • Tree
  • List 117
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 3ab957fd on github
  • Prev Build on main (#D3B28525...)
  • Next Build on main (#ECB91B1D...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc