Documentation ¶
Index ¶
- type Graph
- func (self *Graph) AddEqualWeightPath(names []string, weight float64)
- func (self *Graph) AddNode(name string)
- func (self *Graph) AddPath(names []string, weights []float64)
- func (self *Graph) AddUnknownPath(n1, n2 string, n uint, weight float64)
- func (self *Graph) Edge(n1, n2 string) gonumGraph.Edge
- func (self *Graph) Edges() gonumGraph.Edges
- func (self *Graph) From(name string) gonumGraph.Nodes
- func (self *Graph) NameFromID(id int64) string
- func (self *Graph) NewWeightedEdge(n1, n2 string, weight float64) gonumGraph.WeightedEdge
- func (self *Graph) Node(name string) gonumGraph.Node
- func (self *Graph) Nodes() gonumGraph.Nodes
- func (self *Graph) PruneToShortest() *Graph
- func (self *Graph) RemoveNode(name string)
- func (self *Graph) RmDisconnected()
- func (self *Graph) Weight(xid, yid int64) (w float64, ok bool)
- func (self *Graph) WeightedEdge(n1, n2 string) gonumGraph.WeightedEdge
- func (self *Graph) WeightedEdges() gonumGraph.WeightedEdges
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
}
Graph has named nodes/vertexes
func NewGraphFromCsvInput ¶
func (*Graph) AddEqualWeightPath ¶
func (*Graph) AddUnknownPath ¶
AddUnknownPath adds a path from n1 through n "unknowns" to n2 distributing the weight accordingly
func (*Graph) Edges ¶
func (self *Graph) Edges() gonumGraph.Edges
func (*Graph) NameFromID ¶
func (*Graph) NewWeightedEdge ¶
func (self *Graph) NewWeightedEdge(n1, n2 string, weight float64) gonumGraph.WeightedEdge
func (*Graph) Nodes ¶
func (self *Graph) Nodes() gonumGraph.Nodes
func (*Graph) PruneToShortest ¶
func (*Graph) RemoveNode ¶
func (*Graph) RmDisconnected ¶
func (self *Graph) RmDisconnected()
func (*Graph) WeightedEdge ¶
func (self *Graph) WeightedEdge(n1, n2 string) gonumGraph.WeightedEdge
func (*Graph) WeightedEdges ¶
func (self *Graph) WeightedEdges() gonumGraph.WeightedEdges
Click to show internal directories.
Click to hide internal directories.