Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random Seed Does Not Affect GenDegSeq #110

Open
shishong78 opened this issue Oct 30, 2019 · 0 comments
Open

Random Seed Does Not Affect GenDegSeq #110

shishong78 opened this issue Oct 30, 2019 · 0 comments

Comments

@shishong78
Copy link

shishong78 commented Oct 30, 2019

`
import snap

#Suppose we have a (sorted) degree sequence: sorted_degseq

#We generate two TRnd objects
Rnd1 = snap.TRnd(555, 2)
Rnd2 = snap.TRnd(1000, 5)

#Generate two random graphs with identical degree sequence, but with different random numbers
G1 = snap.GenDegSeq(sorted_degseq, Rnd1)
G2 = snap.GenDegSeq(sorted_degseq, Rnd2)
`
I expected G1 and G2 to be different, but they seem to be isomorphic.

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

No branches or pull requests

1 participant