Documentation ¶
Index ¶
- type CMap
- type CSet
- type Graph
- func (g *Graph) Add(v interface{})
- func (g *Graph) AddEdge(from, to interface{})
- func (g *Graph) BFS(v interface{}) []interface{}
- func (g *Graph) BFSReverse(v interface{}) []interface{}
- func (g *Graph) Cycle() []interface{}
- func (g *Graph) Cyclic() bool
- func (g *Graph) DFS(v interface{}) []interface{}
- func (g *Graph) From(v interface{}) Set
- func (g *Graph) Has(v interface{}) bool
- func (g *Graph) Remove(v interface{})
- func (g *Graph) RemoveEdge(from, to interface{})
- func (g *Graph) SCC() [][]interface{}
- func (g *Graph) Size() int
- func (g *Graph) To(v interface{}) Set
- func (g *Graph) Transpose() *Graph
- func (g *Graph) Vertices() Set
- type HashRing
- type MMap
- type Queue
- type Set
- type Stack
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
func (*Graph) BFS ¶
func (g *Graph) BFS(v interface{}) []interface{}
BFS returns breadth first search vertices from a given source
func (*Graph) BFSReverse ¶
func (g *Graph) BFSReverse(v interface{}) []interface{}
func (*Graph) Cycle ¶
func (g *Graph) Cycle() []interface{}
Cycle returns the first cycle with vertices
func (*Graph) DFS ¶
func (g *Graph) DFS(v interface{}) []interface{}
DFS returns depth first search vertices from a given source
func (*Graph) RemoveEdge ¶
func (g *Graph) RemoveEdge(from, to interface{})
type HashRing ¶
type HashRing struct {
// contains filtered or unexported fields
}
HashRing implements a hash ring like Chord using md5
type MMap ¶
func (*MMap) SecondaryKeys ¶
func (m *MMap) SecondaryKeys(key interface{}) []interface{}
Click to show internal directories.
Click to hide internal directories.