Qianyun Guo wrote:
> Hi all, I am trying to get a suffix tree from a string. I use three
> classes, Node, Edge, SuffixTree. I have two questions when implementing:
>
> 【1】
>
a = Edge(1,2,3,4)
>
a.length
>
> 1
> if I remove '@property' in my code, it returns as below:
>
a = Edg
Hi all, I am trying to get a suffix tree from a string. I use three
classes, Node, Edge, SuffixTree. I have two questions when implementing:
【1】
>>> a = Edge(1,2,3,4)
>>> a.length
1
if I remove '@property' in my code, it returns as below:
>>> a = Edge(1,2,3,4)
>>> a.length
>>> a.length()