I am using igraph to construct a networks. But I have a doubt, I have nodes with 3 different attributes (On, Off and Unknown). For example:
How can I set the three different attributes in the same node?
Something like this ?
Check igraph docs to modify network.
I don't think this answer the question. As I understand it, OP wants to have multiple values as an attribute.
I was also little skeptical about my understanding about the question (hence the ?).
You can use a vector as an attribute, something like:
g <- set.vertex.attribute(g, 'status', "N2", list(c("ON", "OFF", "UNKNOWN")))
This is exactly what I was looking for. Thank you so much and sorry for my bad redaction, I am new in this site.
Login before adding your answer.
Use of this site constitutes acceptance of our User Agreement and Privacy