export Node type

This commit is contained in:
filifa 2025-05-03 23:21:29 -04:00
parent 59eb2ff72c
commit 5010e7202e
1 changed files with 4 additions and 4 deletions

View File

@ -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
}