[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] attribute problem with graph.data.frame
From: |
Tamas Nepusz |
Subject: |
Re: [igraph] attribute problem with graph.data.frame |
Date: |
Tue, 13 Apr 2010 00:39:18 +0100 |
Dear Yannick,
> > graph.data.frame(as.matrix(swap),directed=TRUE) -> g1.sw
I'm no R expert, but I suspect that igraph is complaining because you are
trying to create a graph from a matrix, while graph.data.frame expects a data
frame. Why can't you just simply say graph.data.frame(swap, directed=TRUE)?
--
T.