Closed jhrcook closed 3 years ago
I was able to fix my issue by first isolating the component with the seeds, making all of my graphs ergodic. This is probably a more proper technique, anyways. I'll leave this issue here, though, because there may be a bug in the .is.ergodic
check that you want to track down and find. Otherwise, feel free to close it.
Thank you, Josh Cook
Hey Josh, .is.ergodic
is tested everytime you call `random.walk.
First, the matrix you use as an argument is normalized to make it a proper transition matrix. Then the transition matrix is tested for ergodicity (now, that I am writing these lines, I am not sure anymore if the ergodicity should be better tested before). In any way, I'll have a look at the method. :)
Nice to see that the package has some use.
Cheers, Simon
Hello, Thank you for making this package, it has been incredibly useful! I have run into a problem where some graphs will fail with the following message when using
random.walk
.I found this error message in a method for
random.walk
in "R/mrw.R":The graph that failed really was composed of multiple components, but so were all of my other graphs prior that ran without fail. I also tested each one on the
.is.ergodic
function in "R/mat_util.R" (after applying thenormalize.stochastic
and they all failed (ie. returnFALSE
).Finally, I looked at the class of
P0
andadjM
, and they are both"matrix"
in all cases that work and those that fail.My OOP in R is poor, so I am unable to determine when the
.is.ergodic
test is being applied and when it isn't on a call torandom.walk
. Would you know a way for me to start troubleshooting this? If I can create a reprex, I'll add it in another post.Thank you, Josh Cook