igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Plotting an ancestral graph


From: Gábor Csárdi
Subject: Re: [igraph] Plotting an ancestral graph
Date: Mon, 14 Jun 2010 12:54:04 +0200

Hi Alexander,

On Mon, Jun 14, 2010 at 12:17 PM, Alexander Savi <address@hidden> wrote:
[...]

> I use iGraph in R for plotting the undirected adjacencies between variables
> (o --- o) and the colliders (--> o <--). It seems to me that in iGraph it is
> not possible to plot a graph with both directed and undirected edges (I
> think it is called an ancestral graph and I think Pearl calls it a
> rudimentary pattern).

This is possible, see ?igraph.plotting and the 'edge.arrow.mode' parameter:

g <- graph.ring(10)
plot(g, layout=layout.circle, edge.arrow.mode=rep(0:3, length=ecount(g)))

Best Regards,
Gabor

[...]


-- 
Gabor Csardi <address@hidden>     UNIL DGM



reply via email to

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