MathGroup Archive 2012

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

Search the Archive

Re: Where is ShowGraph?

  • To: mathgroup at
  • Subject: [mg125964] Re: Where is ShowGraph?
  • From: Bill Rowe <readnews at>
  • Date: Tue, 10 Apr 2012 02:28:09 -0400 (EDT)
  • Delivered-to:

On 4/9/12 at 5:32 AM, mathgroup at (James Stein) wrote:

>I assume Combinatorica comes preloaded with Mathematica 8, because
>my attempt to load Combinatorica gives an error message
>"Combinatorica Graph and Permutations functionality has been
>superseded by preloaded functionaliy[sic]."

>And indeed, so it seems, as this code works fine:
>g = GraphData["KnightsTour"]
>resulting in an apparently sensible list structure for g.

>However, online documentation for Combinatorica describes a routine
>ShowGraph, giving this example:
>But ShowGraph is not defined (apparently not preloaded). Indeed,
>'ShowGraph' appears in blue text (undefined) in the aforementioned
>documentation page.

>I visited, as suggested by the documentation,
>without edification.

>What am I missing?  How do I display the graph 'g'?

There have been changes in version 8 that impact usage of
Combinatorica. First, *some* but not all of the functions of
Combinatorica have been incorporated into the kernel. So, in
*some* cases, you can do things without loading the package.

In previous versions of Mathematica, you would load the package
by doing

Needs["DiscreteMath`Combinatorica`"] or

You can still do the above in version 8. But if you do you will
be loading an older version of the Combinatorica package and
will see several warning messages

With version 8 you would do better to do either

Needs["Combinatorica`"] or

You will still see one warning message indicating some of the
functionality of this package has bee superseded by preloaded functionality.

  • Prev by Date: Re: Import HTTP data in asynchronous/parallel way
  • Next by Date: Re: Mathematica 8 3D Plot question
  • Previous by thread: Re: Where is ShowGraph?
  • Next by thread: Plotting vectors on a linear function