remove references to markov chains
This commit is contained in:
@@ -25,13 +25,12 @@ import (
|
||||
"gonum.org/v1/gonum/graph/multi"
|
||||
)
|
||||
|
||||
// DOTDirectedGraph is a graph representing an absorbing Markov chain.
|
||||
// DOTDirectedGraph is a graph to unmarshal DOT graphs.
|
||||
type DOTDirectedGraph struct {
|
||||
*igraph.DirectedGraph
|
||||
}
|
||||
|
||||
// NewDOTDirectedGraph returns an absorbing Markov chain with no nodes or
|
||||
// edges.
|
||||
// NewDOTDirectedGraph returns a graph with no nodes or edges.
|
||||
func NewDOTDirectedGraph() *DOTDirectedGraph {
|
||||
return &DOTDirectedGraph{DirectedGraph: igraph.NewDirectedGraph()}
|
||||
}
|
||||
@@ -47,7 +46,7 @@ func (g *DOTDirectedGraph) NewNode() graph.Node {
|
||||
return &Node{Node: g.DirectedGraph.NewNode()}
|
||||
}
|
||||
|
||||
// SetLine adds a DOT-aware weighted line to the Markov chain.
|
||||
// SetLine adds a DOT-aware weighted line to the graph.
|
||||
func (g *DOTDirectedGraph) SetLine(e graph.Line) {
|
||||
g.DirectedGraph.SetWeightedLine(e.(*weightedLine))
|
||||
}
|
||||
|
||||
@@ -43,8 +43,7 @@ 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.
|
||||
// multi.WeightedLine, it allows for self-loops.
|
||||
type weightedLine struct {
|
||||
multi.WeightedLine
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user