[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Problem again
From: |
Gábor Csárdi |
Subject: |
Re: [igraph] Problem again |
Date: |
Wed, 18 May 2011 13:44:23 -0400 |
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
<address@hidden> wrote:
> 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
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
--
Gabor Csardi <address@hidden> MTA KFKI RMKI