Skip to content

Allow providing an AbstractRNG for seed in spring_layout#214

Merged
simsurace merged 1 commit intoJuliaGraphs:masterfrom
simonschoelly:add-random-generator-argument-for-spring-layout
Oct 23, 2025
Merged

Allow providing an AbstractRNG for seed in spring_layout#214
simsurace merged 1 commit intoJuliaGraphs:masterfrom
simonschoelly:add-random-generator-argument-for-spring-layout

Conversation

@simonschoelly
Copy link
Member

This PR allows one to provide also a Random.AbstractRNG as a seed for spring_layout.

This became necessary as Random.MersenneTwister is not stable over different Julia versions leading to a broken test. Now we can use StableRNG from StableRNGs.jl in that test.

In addition when providing initial locations instead of a seed or a random number generator we now check the length of these vectors.

@simsurace simsurace merged commit 5e5a347 into JuliaGraphs:master Oct 23, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments