MathGroup Archive 2005

[Date Index] [Thread Index] [Author Index]

Search the Archive

Casting a Command as a String

  • To: mathgroup at
  • Subject: [mg58940] Casting a Command as a String
  • From: Bruce Colletti <vze269bv at>
  • Date: Sun, 24 Jul 2005 01:21:59 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

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?];

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).



  • Prev by Date: Re: simple question about random
  • Next by Date: Re: limit problem
  • Previous by thread: Re: LegendreP of order = -1
  • Next by thread: Re: Casting a Command as a String