[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] Network with directed and undirected edges
From: |
Dieckmann, Anna |
Subject: |
Re: [igraph] Network with directed and undirected edges |
Date: |
Mon, 7 May 2012 21:35:54 +0200 |
Thanks a lot for the help. I've chosen the solution to replace a undirected
edge with two directed ones.
Best, Anna
Am 07.05.2012 um 16:01 schrieb "Gábor Csárdi" <address@hidden>:
> On Fri, May 4, 2012 at 5:11 PM, Tamás Nepusz <address@hidden> wrote:
>>> I've to build a protein-protein-interaction network with mainly undirected
>>> but also some directed edges. Is there any way to build such a network with
>>> igraph?
>>
>> I think that in most cases, you can simply replace an A---B undirected edge
>> with a pair of directed edges: A --> B and B --> A. igraph cannot handle
>> mixed undirected and directed edges within the same graph, so this is your
>> only option if you want to stick to igraph.
>
> The other option would be to mark different edge types with edge
> attributes. This works if you want to represent the network within
> igraph, but you need to be careful with the different algorithms and
> how exactly they consider edge directions.
>
> Gabor
>
>> --
>> T.
>>
>>
>> _______________________________________________
>> igraph-help mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
>
>
> --
> Gabor Csardi <address@hidden> MTA KFKI RMKI
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help