Rosalind - Overlap Graphs

rosalind

Problem:

Please find the problem here.

Solution:

To construct the graph, we go through every pair, excluding self-loops, and output an edge when the suffix matches the prefix. Care is taken to make sure the string actually has at least 3 characters.

Code: