adjust comments
This commit is contained in:
parent
f172cab6a0
commit
0106ef70a0
|
@ -140,18 +140,18 @@ func (g *AbsorbingMarkovChain) AdjacencyMatrix() *mat.Dense {
|
||||||
return a
|
return a
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewLine returns a weightedLine that can be added to the Markov chain.
|
// NewLine returns a DOT-aware weighted line.
|
||||||
func (g *AbsorbingMarkovChain) NewLine(from, to graph.Node) graph.Line {
|
func (g *AbsorbingMarkovChain) NewLine(from, to graph.Node) graph.Line {
|
||||||
e := g.WeightedDirectedGraph.NewWeightedLine(from, to, math.NaN()).(multi.WeightedLine)
|
e := g.WeightedDirectedGraph.NewWeightedLine(from, to, math.NaN()).(multi.WeightedLine)
|
||||||
return &weightedLine{WeightedLine: e}
|
return &weightedLine{WeightedLine: e}
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewNode returns a Node that can be added to the Markov chain.
|
// NewNode returns a DOT-aware Node.
|
||||||
func (g *AbsorbingMarkovChain) NewNode() graph.Node {
|
func (g *AbsorbingMarkovChain) NewNode() graph.Node {
|
||||||
return &Node{Node: g.WeightedDirectedGraph.NewNode()}
|
return &Node{Node: g.WeightedDirectedGraph.NewNode()}
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetLine adds a weighted edge to the Markov chain.
|
// SetLine adds a DOT-aware weighted line to the Markov chain.
|
||||||
func (g *AbsorbingMarkovChain) SetLine(e graph.Line) {
|
func (g *AbsorbingMarkovChain) SetLine(e graph.Line) {
|
||||||
g.WeightedDirectedGraph.SetWeightedLine(e.(*weightedLine))
|
g.WeightedDirectedGraph.SetWeightedLine(e.(*weightedLine))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue