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

code-shoily / yog_ex / 927f33a21f5bb0c8788e7ad075ec113bd98031fb
93%

Build:
DEFAULT BRANCH: main
Ran 08 Jun 2026 09:56PM 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:55PM UTC coverage: 92.984% (-0.03%) from 93.013%
927f33a21f5bb0c8788e7ad075ec113bd98031fb

push

github

code-shoily
fix(multi): correct undirected self-loop degree counting

In standard graph theory, an undirected self-loop contributes 2 to a
node's degree. Yog.Multi.Model was counting it as 1 because the edge
ID was stored only once in out_edge_ids / in_edge_ids (MapSet.put is
idempotent).

Fixed by adding count_self_loops/2 and adding the self-loop count to
the base MapSet.size for undirected graphs in both out_degree/2 and
in_degree/2. Directed self-loops are unchanged (1 to in-degree, 1 to
out-degree, total 2).

This also fixes false-negative Eulerian path/circuit detection on
undirected multigraphs with self-loops, since Eulerian's parity checks
use Model.out_degree/2 directly.

Fixes #143

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

4 existing lines in 1 file now uncovered.

10390 of 11174 relevant lines covered (92.98%)

9102.78 hits per line

Coverage Regressions

Lines Coverage ∆ File
4
94.57
-1.81% lib/yog/matching.ex
Jobs
ID Job ID Ran Files Coverage
1 927f33a21f5bb0c8788e7ad075ec113bd98031fb.1 08 Jun 2026 09:56PM UTC 117
92.98
GitHub Action Run
Source Files on build 927f33a21f5bb0c8788e7ad075ec113bd98031fb
  • Tree
  • List 117
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 927f33a2 on github
  • Prev Build on main (#ECB91B1D...)
  • Next Build on main (#E44D1E72...)
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