http://rosalind.info/problems/grph/