Should I have all paths as the population,
No, this is not usually possible for more realistic problems where a population that covered all possibilities would be far too large to manage.
or should I create a population same size as the nodes(17).
No, there is no need to link the population size to other properties of the problem so directly.
If your path ...
Before trying to answer your question more directly, let me clarify something.
People often use the term genetic algorithms (GAs), but, in many cases, what they really mean is evolutionary algorithms (EAs), which is a collection of population-based (i.e. multiple solutions are maintained at the same time) optimization algorithms and approaches that are ...
To understand what a codon is, we need to understand what GE is, so let me first provide a brief description of this approach.
Grammatical evolution (GE) is an approach to genetic programming where the genotypes are binary (or integer) arrays, which are mapped to the phenotypes (i.e. the actual solutions, which can be represented as ...