update comments
This commit is contained in:
parent
f056086b56
commit
249ca9c7aa
|
@ -24,7 +24,9 @@ import (
|
|||
"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 {
|
||||
*multi.WeightedDirectedGraph
|
||||
}
|
||||
|
|
|
@ -45,8 +45,6 @@ func (n *Node) DOTID() string {
|
|||
// weightedLine is a DOT-aware multi.WeightedLine. By being a
|
||||
// multi.WeightedLine, it allows for self-loops, which are important for
|
||||
// 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 {
|
||||
multi.WeightedLine
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue