Documentation
¶
Index ¶
- func GetNamedPath(paths [][]int, intToInterface map[int]interface{}) [][]interface{}
- func GetPathsOfNames(paths [][]interface{}, actionOnLoop []string) [][]string
- func MakeInterfaceAndIntConverters(vertexes []interface{}) (map[int]interface{}, map[interface{}]int)
- type Edge
- type Edges
- type States
- type Vertex
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNamedPath ¶
Get common path from integer path
func GetPathsOfNames ¶
Get list of actions lists something like: [[do_something_1, do_something_2, ...], [...] ...]
func MakeInterfaceAndIntConverters ¶
func MakeInterfaceAndIntConverters(vertexes []interface{}) (map[int]interface{}, map[interface{}]int)
Make two map for convert: int -> interface and interface -> int
Types ¶
type Edge ¶
type Edge [2]interface{}
Named edge
func (*Edge) ConvertEdgeToIntEdge ¶
Convert integer named edge to int edge
type Edges ¶
type Edges []Edge
List of named edges
func (*Edges) ConvertEdgesToIntEdges ¶
Convert integer named edges to int edges
func (*Edges) DFS ¶
func (edges *Edges) DFS(from, to interface{}) [][]interface{}
Depth-first search for any values
func (*Edges) GetUniqueVertexes ¶
func (edges *Edges) GetUniqueVertexes() []interface{}
Get all unique vertexes from edges list
Click to show internal directories.
Click to hide internal directories.