From 5010e7202ecc4190bc20068e9c6f0600942e7395 Mon Sep 17 00:00:00 2001 From: filifa Date: Sat, 3 May 2025 23:21:29 -0400 Subject: [PATCH] export Node type --- cmd/internal/markov/absorbing.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 }