update comments

This commit is contained in:
filifa 2025-05-05 00:09:01 -04:00
parent f056086b56
commit 249ca9c7aa
2 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,9 @@ import (
"gonum.org/v1/gonum/mat" "gonum.org/v1/gonum/mat"
) )
// AbsorbingMarkovChain is a graph representing an absorbing Markov chain. // AbsorbingMarkovChain is a graph representing an absorbing Markov chain. This
// embeds a multi.WeightedDirectedGraph (as opposed to
// simple.WeightedDirectedGraph) to handle self loops.
type AbsorbingMarkovChain struct { type AbsorbingMarkovChain struct {
*multi.WeightedDirectedGraph *multi.WeightedDirectedGraph
} }

View File

@ -45,8 +45,6 @@ func (n *Node) DOTID() string {
// weightedLine is a DOT-aware multi.WeightedLine. By being a // weightedLine is a DOT-aware multi.WeightedLine. By being a
// multi.WeightedLine, it allows for self-loops, which are important for // multi.WeightedLine, it allows for self-loops, which are important for
// absorbing Markov chains. // absorbing Markov chains.
// TODO: this is a little confusing, maybe just have checks in the code that
// there's only one line in each edge?
type weightedLine struct { type weightedLine struct {
multi.WeightedLine multi.WeightedLine
} }