change default absent value to 0

This commit is contained in:
filifa 2025-05-02 00:40:30 -04:00
parent 5228ebccbe
commit 1f589633b7
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ type AbsorbingMarkovChain struct {
}
func NewAbsorbingMarkovChain() *AbsorbingMarkovChain {
return &AbsorbingMarkovChain{WeightedDirectedGraph: simple.NewWeightedDirectedGraph(math.NaN(), math.NaN())}
return &AbsorbingMarkovChain{WeightedDirectedGraph: simple.NewWeightedDirectedGraph(math.NaN(), 0)}
}
func (g *AbsorbingMarkovChain) IsValid() bool {