igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Igraph commands about directed and undirected graphs


From: Gábor Csárdi
Subject: Re: [igraph] Igraph commands about directed and undirected graphs
Date: Mon, 12 Sep 2011 11:23:14 -0400

On Mon, Sep 12, 2011 at 8:49 AM, Carlos Eduardo <address@hidden> wrote:
[...]
> b) Is there any problem about building networks as illustrated in situation
> 2 (directed and undirected edges handled/represented together)?

Yes, there is a problem with this, igraph does not support them. An
igraph graph is a multiset or either ordered (=directed graph) or
unordered (=undirected graph) pairs. You cannot mix directed and
undirected edges.

You can "emulate" them by using undirected graphs, and adding an edge
attribute that tell the direction of the edge. But if you do this,
then all igraph functions will handle the graph as undirected, of
course.

Gabor

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



reply via email to

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