| 40 | } |
| 41 | |
| 42 | SIValue SIPath_Relationships(SIValue p) { |
| 43 | Path *path = (Path *) p.ptrval; |
| 44 | uint edgeCount = Path_EdgeCount(path); |
| 45 | SIValue array = SIArray_New(edgeCount); |
| 46 | for(uint i = 0; i < edgeCount; i++) { |
| 47 | SIArray_Append(&array, SI_Edge(Path_GetEdge(path, i))); |
| 48 | } |
| 49 | return array; |
| 50 | } |
| 51 | |
| 52 | SIValue SIPath_GetRelationship(SIValue p, size_t i) { |
| 53 | ASSERT(i < SIPath_Length(p)); |
no test coverage detected