update comments
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user