export Node type
This commit is contained in:
parent
59eb2ff72c
commit
5010e7202e
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue