|Subject:||Re: [igraph] error plotting A graph with attributes example|
|Date:||Sat, 3 Mar 2007 15:43:39 -0800|
|After a good deal of fiddling, it appears the problem is having a vertex attribute called "name". Instead, if you change it to names (and use V(g)$names thereafter) and then in the tkplot statement, use|
tkplot(g, layout=layout.kamada.kawai, edge.color=E(g)$color, labels=names(ids))
for short names or
tkplot(g, layout=layout.kamada.kawai, edge.color=E(g)$color, labels=V(g)$names)
for long names, you're all good.
This should be changed in the tutorial.
On Mar 3, 2007, at 1:57 PM, Jarrett Byrnes wrote:
|[Prev in Thread]||Current Thread||[Next in Thread]|