Skip to content

suffix link question in split_edge function #5

@zhangliyong

Description

@zhangliyong

Hello,

I read your code and Mark Nelson's C++ implementation, and find that you both have the line:
self.nodes[e.dest_node_index].suffix_node = suffix.source_node_index ### need to add node for each edge
in _split_edge function, as you mentioned your implementation is based on Mark Nelson's one,

I don't understand why this line is needed, this line seems that a node have a suffix link pointing to its parent node, and this seams not the suffix link meaning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions