public static GraphNode ToGraphNode(StringNode node) { var output = new GraphNode(node.GetHashCode(), "\"'" + node.Representation.Replace(@"\", @"\\").Replace("'", @"\'").Replace("\"", "\\\"") + "'\""); output.AddProperty("color", "orange"); output.AddProperty("tooltip", nameof(StringNode)); return(output); }