diff --git a/aql/newHierarchy.go b/aql/newHierarchy.go new file mode 100644 index 0000000000000000000000000000000000000000..7188761f938200de988639b1f462cc8b5d589e5d --- /dev/null +++ b/aql/newHierarchy.go @@ -0,0 +1 @@ +package aql diff --git a/entity/hierarchyStruct.go b/entity/hierarchyStruct.go index 82eb04a68548cdf928815fa3c63a03cbfd53fb53..d97006f5f0efc25aacd9b26d3004384b20603db1 100644 --- a/entity/hierarchyStruct.go +++ b/entity/hierarchyStruct.go @@ -7,6 +7,18 @@ type Pdict struct { Pointer int } +type Triple struct { + In int + Rel int + Out int +} + +type Tree struct { + Self Triple + Parent int + Children []int +} + func (p PdictList) Len() int { return len(p) }