The Ukkonen.State class

The return type of ukkonen.traverse.

This indicates the position reached by following a path in the tree.

Contents

State

The return type of ukkonen.traverse.

Ukkonen.State.copy(…)

Copy a Ukkonen.State object.

Ukkonen.State.pos

The position in the edge leading to the node v reached.

Ukkonen.State.v

The index in Ukkonen.nodes of the node at the end of the position reached.

Full API

class Ukkonen.State
__init__(*args, **kwargs)

Overloaded function.

__init__(self: Ukkonen.State) None

Default constructor.

__init__(self: Ukkonen.State, vv: int, ppos: int) None

Construct from index and position.

Parameters:
  • vv (int) – the index of the node reached.

  • ppos (int) – the position in the edge leading to vv.

copy(self: Ukkonen.State) Ukkonen.State

Copy a Ukkonen.State object.

Returns:

A copy.

Return type:

Ukkonen.State

property pos

The position in the edge leading to the node v reached.

property v

The index in Ukkonen.nodes of the node at the end of the position reached.