igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] Network with directed and undirected edges


From: Gábor Csárdi
Subject: Re: [igraph] Network with directed and undirected edges
Date: Mon, 7 May 2012 10:00:58 -0400

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]