Re: Re: Label vertices in Graph to display with GraphPlot
- To: mathgroup at smc.vnet.net
- Subject: [mg87290] Re: [mg87241] Re: Label vertices in Graph to display with GraphPlot
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Sun, 6 Apr 2008 06:46:15 -0400 (EDT)
- Organization: Mathematics & Statistics, Univ. of Mass./Amherst
- References: <200804050922.EAA12061@smc.vnet.net>
- Reply-to: murray at math.umass.edu
Thank you for your response. But unfortunately that does not answer the
question I asked. I asked how to how to display the vertex labels with
GraphPlot when the graph was created using a Combinatorica package
function that directly creates a graph, e.g.:
g = RotateVertices[Cycle[5], \[Pi]/10]; g = AddEdge[g, {2, 5}];
g = SetGraphOptions[g, VertexLabel -> Characters["abcde"]];
So the structure of g is NOT the sort of structure you show.
Now I want to display those vertex labels with GraphPlot, but the
"obvious" thing does NOT work:
GraphPlot[g,Method->None,VertexRenderingFunction->(Text[#2,#1]&)
I want to reproduce with GraphPlot the sort of display I get with the
Combinatorica function ShowGraph:
ShowGraph[g]
P_ter wrote:
> Hello Murray,
> when I take the last example in the documentation of GraphPlot3D (basic examples: the rendering) and use the following graph the labels do not show up. (the text comes from an application of Formal Concept Analysis to a consumer table for mobile phones). Anyway, they do now show up.
> gr1 = {"Gesprekken" -> "Gebruik-+", "Gesprekken" -> "Duurzaamheid-+", "Gebruik-+" -> "Draagbaarheid++","Gebruik-+" -> "SMS-+",
> "Gebruik-+" -> "Lege knoop", "Duurzaamheid-+" -> "Accu++",
> "Duurzaamheid-+" -> "Lege knoop",
> "Draagbaarheid++" -> "Duurzaamheid++",
> "Draagbaarheid++" -> "SMS--", "Lege knoop" -> "SMS--",
> "SMS-+" -> "Duurzaamheid++", "SMS-+" -> 9, "Lege knoop" -> 9,
> "Accu++" -> 9, "Accu++" -> "Gebruik+", "Duurzaamheid++" -> "Earth",
> "SMS--" -> "Earth", 9 -> "Earth", "Gebruik+" -> "Earth"};
>
--
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
- References:
- Re: Label vertices in Graph to display with GraphPlot
- From: P_ter <petervansummeren@gmail.com>
- Re: Label vertices in Graph to display with GraphPlot