Graphing

Is there a better way to do this? I'd have made them implement a common interface, but I can't change String, and making a subclass of String just for this purpose seemed pretty gross.