export Node type
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user