MathGroup Archive 2008

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

Search the Archive

how change color of directed edges for GraphPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg87113] how change color of directed edges for GraphPlot
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Tue, 1 Apr 2008 03:21:41 -0500 (EST)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • Reply-to: murray at math.umass.edu

I have a directed graph to display using GraphPlot:

   a=RotateVertices[EmptyGraph[4],-(\[Pi]/4)];
   a=SetGraphOptions[a,EdgeDirection->True];
   a=AddEdges[a,{{1,2},{2,3},{2,4},{3,1},{4,1},{4,3}}];

I want to display it using GraphPlot...

   GraphPlot[a, Method -> None, DirectedEdges -> True,
      VertexRenderingFunction -> ({Black, Disk[#1, 0.02]} &)]

... but I want the edges and the arrows to be Black and not the default 
brown.

How can one do this WITHOUT having to completely rewrite what the 
default EdgeRenderingFunction->Automatic option does; that is, I still 
want the arrows with their heads in the default position (it looks 
something like 2/3 the way along each arrow).

-- 
Murray Eisenberg                     murray at math.umass.edu
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: Something very simple.....
  • Next by Date: Graphics3D, missing part
  • Previous by thread: Re: Something very simple.....
  • Next by thread: Graphics3D, missing part