Add `graph?` function which equals to C's `isgraph`
Refactor FASTA-related codes