diff --git a/cmd/internal/markov/absorbing.go b/cmd/internal/markov/absorbing.go index 1564e30..ecb0fc1 100644 --- a/cmd/internal/markov/absorbing.go +++ b/cmd/internal/markov/absorbing.go @@ -139,7 +139,7 @@ func (g *AbsorbingMarkovChain) NewEdge(from, to graph.Node) graph.Edge { } func (g *AbsorbingMarkovChain) NewNode() graph.Node { - return &node{Node: g.WeightedDirectedGraph.NewNode()} + return &Node{Node: g.WeightedDirectedGraph.NewNode()} } func (g *AbsorbingMarkovChain) SetEdge(e graph.Edge) { @@ -168,15 +168,15 @@ func (e *weightedEdge) SetAttribute(attr encoding.Attribute) error { return err } -type node struct { +type Node struct { graph.Node dotID string } -func (n *node) SetDOTID(id string) { +func (n *Node) SetDOTID(id string) { n.dotID = id } -func (n *node) DOTID() string { +func (n *Node) DOTID() string { return n.dotID }