Documentation ¶
Index ¶
- type CMap
- type Graph
- func (g *Graph) Add(v interface{})
- func (g *Graph) AddEdge(from interface{}, to interface{})
- func (g *Graph) BFS(v interface{}) []interface{}
- func (g *Graph) Cyclic() bool
- func (g *Graph) From(v interface{}) Set
- func (g *Graph) Has(v interface{}) bool
- func (g *Graph) Remove(v interface{})
- func (g *Graph) Size() int
- func (g *Graph) To(v interface{}) Set
- func (g *Graph) Vertices() Set
- type MMap
- type Queue
- type Set
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
type MMap ¶
func (*MMap) SecondaryKeys ¶
func (m *MMap) SecondaryKeys(key interface{}) []interface{}
Click to show internal directories.
Click to hide internal directories.