Re: GraphComplement doesn't work in 7.0
- To: mathgroup at smc.vnet.net
- Subject: [mg97093] Re: GraphComplement doesn't work in 7.0
- From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
- Date: Thu, 5 Mar 2009 04:54:05 -0500 (EST)
- References: <golr38$qdo$1@smc.vnet.net>
They return unevaluated because you don't provide them with the input formats for which they are defined. As can be clearly (!) seen in the Combinatorica manual, GraphComplement needs a graph as input. What you gave him is not a graph. Look up this manual page: Combinatorica/guide/GraphConstructionAndRepresentations and find some graph representation functions. Hint: they start with From. Cheers -- Sjoerd On Mar 4, 2:10 pm, Tangerine Luo <tangerine.... at gmail.com> wrote: > I find some functions do not work in mathematica 7.0. Why? > are some function not implemented yet? > << Combinatorica` > In[4]:= GraphComplement[{1 -> 2}] > > Out[4]= GraphComplement[{1 -> 2}]