igraph-help
[Top][All Lists]

## Re: [igraph] Problem again

 From: Gábor Csárdi Subject: Re: [igraph] Problem again Date: Thu, 19 May 2011 10:23:03 -0400

```Hi Moses,

from the manual:

• curved

Specifies whether to draw curved edges, or not. This
can be a logical or a numeric vector or scalar.

First the vector is replicated to have the same length as the
number of edges in the graph. Then it is interpreted for each
edge separately. A numeric value specifies the curvature of
the edge; zero curvature means straight edges, negative
values means the edge bends clockwise, positive values the
opposite. ‘TRUE’ means curvature 0.5, ‘FALSE’ means curvature
zero.

This parameter is ignored for loop edges.

The default value is ‘FALSE’.

This parameter is currently ignored by ‘rglplot’.

Best,
Gabor

On Thu, May 19, 2011 at 5:02 AM, Moses Boudourides
> Hi Gabor,
>
> Does the curved edges function accept any parameters to define the
> extent of curving?
>
> Best,
>
> --Moses
>
>
> On Wed, May 18, 2011 at 8:00 PM, Moses Boudourides
>> Hmm.. I'm not sure if I can do this (now that I need to finish what
>> I'm writing in a couple of days). However, I've just tried with only
>> double edges (where one is the original graph edge and the second is
>> some minimal order induced edge) and it works.
>>
>> The only thing will possibly make it look better is if I could control
>> the curvature of the curved edges (I mean, I'd like to make them less
>> curved). Is there a parameter to do this?
>>
>> Thanks again Gabor,
>>
>> --Moses
>>
>> On Wed, May 18, 2011 at 7:44 PM, Gábor Csárdi <address@hidden> wrote:
>>> Then, I guess the simplest is to create the graph from a data frame,
>>> with columns 'from', 'to', 'lty', 'curved', 'color', etc.
>>> Then you can use graph.data.frame() to create the graph with the
>>> appropriate edge attributes.
>>>
>>> Gabor
>>>
>>> On Wed, May 18, 2011 at 1:30 PM, Moses Boudourides
>>>> Hi,
>>>>
>>>> Let me first describe what I'm trying to plot. It is a graph, some of
>>>> its edges being multiple, actually in more than three copies.
>>>> Something like this:
>>>>
>>>> g <- graph( c( 0,1, 0,1, 0,1, 0,2, 0,2, 0,2, 1,2, 1,2), directed=FALSE )
>>>>
>>>> Now the first edges 0,1 and 0,2 I want them non-curved and gray, while
>>>> all the other edges curved and colored differently (say 0,1, 0,2, 1,2
>>>> blue and 0,1, 0,2, 1,2 green).
>>>>
>>>> What confuses me is that the first time 1,2 appears, I wanted to be
>>>> curved, while not for the first time of the others.
>>>>
>>>> Can this be done?
>>>>
>>>> --Moses
>>>>
>>>> _______________________________________________
>>>> igraph-help mailing list
>>>> https://lists.nongnu.org/mailman/listinfo/igraph-help
>>>>
>>>
>>>
>>>
>>> --
>>> Gabor Csardi <address@hidden>     MTA KFKI RMKI
>>>
>>> _______________________________________________
>>> igraph-help mailing list
>>> https://lists.nongnu.org/mailman/listinfo/igraph-help
>>>
>>
>
> _______________________________________________
> igraph-help mailing list
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>

--
Gabor Csardi <address@hidden>     MTA KFKI RMKI

```