Documentation ¶
Index ¶
- func ToCamel(s string) string
- func ToScreamingDelimited(s string, delimiter uint8, ignore uint8, screaming bool) string
- func ToSnake(s string) string
- type Edge
- type Graph
- func (g *Graph) AddEdge(from, to, weight int32, name string) (int32, error)
- func (g *Graph) AddNode() int32
- func (g *Graph) AllPaths(from, to int32) [][]int32
- func (g *Graph) Connections(n int32) []int32
- func (g *Graph) GetEdges(from, to int32) []Edge
- func (g *Graph) UpdateEdge(from, to, edgeID, oppEdgeID int32) error
- type StackInf
- type StackInt32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToScreamingDelimited ¶
Types ¶
type Graph ¶
type Graph struct {
// contains filtered or unexported fields
}
func (*Graph) Connections ¶
Connections returns all connections for a given node
func (*Graph) UpdateEdge ¶
UpdateEdge updates the edge with the given ID
type StackInf ¶
type StackInf struct {
// contains filtered or unexported fields
}
type StackInt32 ¶
type StackInt32 struct {
// contains filtered or unexported fields
}
func (*StackInt32) Len ¶
func (s *StackInt32) Len() int
Return the number of items in the StackInt32
func (*StackInt32) Pop ¶
func (s *StackInt32) Pop() int32
Pop the top item of the StackInt32 and return it
func (*StackInt32) Push ¶
func (s *StackInt32) Push(value int32)
Push a value onto the top of the StackInt32
Click to show internal directories.
Click to hide internal directories.