Input Parser¶
-
src.input_parser.
input_parser
(m)[source]¶ Given length of sequences, load input data corresponding to this length.
Parameters: m – Length of sequences in the input. Returns: tuple, containing: - sequences_list: List of sequences in the input, parsed such that sequences_list[i] holds a list of integers that are the colors of this sequence.
- n_correct_vertices_list: List holding the number of correct vertices in each sequence in sequences_list.
Note
This function assumes the existence of ‘data/input_m.txt’
Todo
find a better name for n_correct_vertices_list
This page was generated using this .rst code:¶
Input Parser
==================
|
|
.. automodule:: src.input_parser
:members: input_parser
|
|
This page was generated using this .rst code:
*********************************************
|
.. literalinclude:: input_parser.rst
|
|
:ref:`Return Home <mastertoc>`