Documentation ¶
Index ¶
- func OrderDAG(g *Graph, genesisNode *node, k int, blueSetCache *BlueSetCache) []*node
- type BlueSetCache
- type Graph
- func (g *Graph) AddEdge(n1 *node, n2 *node) bool
- func (g *Graph) AddEdgeById(n1 string, n2 string) bool
- func (g *Graph) AddEdgesById(n1 string, parents []string) []bool
- func (g *Graph) AddNode(n *node) bool
- func (g *Graph) AddNodeById(id string) bool
- func (g *Graph) GetNodeById(nodeId string) *node
- func (g *Graph) GetSize() int
- func (g *Graph) GetTips() []*node
- func (g *Graph) PrintGraph() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func OrderDAG ¶
func OrderDAG(g *Graph, genesisNode *node, k int, blueSetCache *BlueSetCache) []*node
need to create a graph with a virtual node
Types ¶
type BlueSetCache ¶
type BlueSetCache struct {
// contains filtered or unexported fields
}
func NewBlueSetCache ¶
func NewBlueSetCache() *BlueSetCache
func (*BlueSetCache) GetBlueNodes ¶
func (blueset *BlueSetCache) GetBlueNodes(n *node) []*node
type Graph ¶
GRAPH
func (*Graph) AddNodeById ¶
func (*Graph) GetNodeById ¶
func (*Graph) PrintGraph ¶
Click to show internal directories.
Click to hide internal directories.