MCPcopy Create free account
hub / github.com/RedisGraph/redisgraph-go / LastNode

Method LastNode

path.go:49–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49func (p Path) LastNode() *Node {
50 return p.GetNode(p.NodesCount() - 1)
51}
52
53func (p Path) NodesCount() int {
54 return len(p.Nodes)

Callers 1

TestPathFunction · 0.80

Calls 2

GetNodeMethod · 0.95
NodesCountMethod · 0.95

Tested by 1

TestPathFunction · 0.64