Documentation ¶
Index ¶
- type Graph
- func (g *Graph) Ancestors(path string) (ancestors []string)
- func (g *Graph) Children(from string) (tos []string)
- func (g *Graph) Descendants(path string) (descendants []string)
- func (g *Graph) Link(from, to string)
- func (g *Graph) Nodes() (nodes []string)
- func (g *Graph) Parents(to string) (froms []string)
- func (g *Graph) Remove(paths ...string)
- func (g *Graph) Set(path string)
- func (g *Graph) ShortestPath(start, end string) (nodes []string, err error)
- func (g *Graph) ShortestPathOf(start string, ends []string) (nodes []string, err error)
- func (g *Graph) String() string
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) Descendants ¶
Descendants recursively returns children, children of children, etc. Descendants includes self.
func (*Graph) ShortestPath ¶
func (*Graph) ShortestPathOf ¶
Click to show internal directories.
Click to hide internal directories.