Add a version of DisplayGraph that takes a StringRef.