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.
| 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. |
| 71 | type 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. |
| 78 | func (p *Path) IsMorphism() bool { return p.qs == nil } |
nothing calls this directly
no outgoing calls
no test coverage detected