This has been fixed recently in the development branch:

https://github.com/igraph/igraph/commit/fde86e2f44877a98f46e8e3af47e4417bf0ff54e

Unfortunately there hasn't been any official release since, so you'll have to
install the development version if you want to make this work.

All the best,
T.

On 10/29, Massimo Franceschet wrote:
> Apparently, a default value for a GraphML-Attribute is not working when 
> reading a GraphML graph in igraph with read.graph in R. An example is here 
> (the color attribute has a default value): 
> http://graphml.graphdrawing.org/primer/attributes.graphml
> 
> > g = 
> > read.graph(file="http://graphml.graphdrawing.org/primer/attributes.graphml";,
> >  format="graphml")
> > V(g)$color
> [1] "green"     ""          "blue"      "red"       ""          "turquoise"
> 
> 
> _______________________________________________
> igraph-help mailing list
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/igraph-help

-- 
T.

_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to