code: def sequence_to_graph(G, seq, color='black'):
      
      for x in seq:
          if x.endswith("_1"):  # Mutation
              G.node(x, color=color, width="0.1", shape="circle", label="")
          else:
              G.node(x, color=color)
      for a, b in pairwise(seq):
          G.edge(a, b, color=color)
docs: Automatically construct graph given a sequence of characters.