MCPcopy
hub / github.com/cayleygraph/cayley / Path

Struct Path

graph/path/path.go:71–75  ·  view source on GitHub ↗

Path represents either a morphism (a pre-defined path stored for later use), or a concrete path, consisting of a morphism and an underlying QuadStore.

Source from the content-addressed store, hash-verified

69// Path represents either a morphism (a pre-defined path stored for later use),
70// or a concrete path, consisting of a morphism and an underlying QuadStore.
71type Path struct {
72 stack []morphism
73 qs graph.QuadStore // Optionally. A nil qs is equivalent to a morphism.
74 baseContext pathContext
75}
76
77// IsMorphism returns whether this Path is a morphism.
78func (p *Path) IsMorphism() bool { return p.qs == nil }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected