Casting a Command as a String
- To: mathgroup at smc.vnet.net
 - Subject: [mg58940] Casting a Command as a String
 - From: Bruce Colletti <vze269bv at verizon.net>
 - Date: Sun, 24 Jul 2005 01:21:59 -0400 (EDT)
 - Sender: owner-wri-mathgroup at wolfram.com
 
I have a list of (Combinatorica) graphs (e.g., X = {Cycle@4,CompleteGraph@3}), and want to automatically display each with the command as the display title.      
For instance, manually working the above list:
ShowGraph[Cycle@4, PlotLabel->?Cycle@4?];
ShowGraph[CompleteGraph@3,PlotLabel->?CompleteGraph@3?];
How do I automate this for an arbitrary list of (Combinatorica) graphs?  Although Scan[ShowGraph,X] displays the titleless graphs, I can?t figure out how to cast a command as a string (so that it can become a title).
Thanks.
Bruce