Services & Resources / Wolfram Forums / MathGroup Archive

MathGroup Archive 2008

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

Search the Archive

Re: how format vertex, edge labels in ShowGraph (Mathematica 6)

  • To: mathgroup at
  • Subject: [mg86150] Re: how format vertex, edge labels in ShowGraph (Mathematica 6)
  • From: Murray Eisenberg <murray at>
  • Date: Mon, 3 Mar 2008 04:42:24 -0500 (EST)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <>
  • Reply-to: murray at

I just figured it out.  I knew I somehow had to use Style.  But by 
beginning with EdgeLabel instead of VertexNumber, I was misled into 
thinking it would not work.  Here's a simple example:

     VertexLabel -> (Style[#, FontSize -> 20,
       FontColor -> Green] &) /@ {"1", "2", "3"},
     EdgeLabel -> (Style[#, FontSize -> 20, FontColor -> Red,
       FontSlant -> "Italic"] &) /@ {"a", "b", "c"}]

The documentation about the graph functions in Combinatorica (and the 
rest of the package?) is really terse to the point of being nearly 
nonexistent.  And it's unclear that the Pemmaraju & Skiena book 
"Computational Discrete Mathematics: Combinatorics and Graph Theorey 
with Mathemtica", written for use with the "new" version of the 
Mathematica 5.2 standard add-on package DiscreteMath`Combinatorica` is 
much more adequate or completely compatible with the Mathematica 6 
implementation of the package.

Murray Eisenberg wrote:
> In the Mathematica 6 version of the package Combinatorica, how does one 
> change the format of vertex or edge labels -- for example, to use a 
> larger font for them?
> The font size is MUCH too small for these labels, at least for rather 
> simple graphs, by contrast with the lengths of the edges and overall 
> size of the display.

Murray Eisenberg                     murray at
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

  • Prev by Date: Re: How do twice Working Precision in square operation
  • Next by Date: Re: Mathematica Integration help
  • Previous by thread: how format vertex, edge labels in ShowGraph (Mathematica 6)
  • Next by thread: Re: Re: how format vertex, edge labels in ShowGraph (Mathematica