Re: Re: Suppress Arrowheads (Combinatorica)
- To: mathgroup at smc.vnet.net
- Subject: [mg75391] Re: Re: [mg75381] Suppress Arrowheads (Combinatorica)
- From: Bruce Colletti <vze269bv at verizon.net>
- Date: Sat, 28 Apr 2007 05:53:47 -0400 (EDT)
Bob
Thanks for the solution. Have just found another on p210 of the Combinatorica book:
ShowGraph@MakeUndirected@FromOrderedPairs@{{2, 1}, {1, 3}, {3, 2}}
Others may also find this useful.
Bruce
=====================
From: Bob Hanlon <hanlonr at cox.net>
Date: 2007/04/27 Fri AM 05:50:56 CDT
To: Bruce Colletti <vze269bv at verizon.net>, mathgroup at smc.vnet.net
Subject: [mg75391] Re: [mg75381] Suppress Arrowheads (Combinatorica)
Needs["DiscreteMath`Combinatorica`"];
G = FromOrderedPairs[{{2,1},{1,3},{3,2}},
Type->Undirected];
ShowGraph[G];
Bob Hanlon
---- Bruce Colletti <vze269bv at verizon.net> wrote:
> Re Combinatorica found in Mathematica 5.2.
>
> How would I "simply" suppress (hopefully via a ShowGraph option) the arrowheads that ShowGraph displays for a DIRECTED graph?
>
> For instance, let G = FromOrderedPairs@{{2,1},{1,3},{3,2}} (a digraph since Directed appears in the graph object). ShowGraph@G displays the arrowheads and hoping to suppress these, I instead enter:
>
> ShowGraph[G, EdgeDirection->False]
>
> Unfortunately, the arrowheads still appear.
>
> Although ShowGraph@FromOrderedPairs[{{2,1},{1,3},{3,2}},Type->Undirected] succeeds, I'd rather not tinker with a digraph's Type. Instead, I wonder if this can be "simply" done via ShowGraph. Any ideas?
>
> Thanks.
>
> Bruce
>
>