.addAttributeData | R Documentation |
Not only simply add the name-value pairs, but also:
unlist lists if indicated by isList column
renames name="name" to "attribute$name"
puts subnetwork id at the and of the attribute name
adds a data type as attribute$dataType if not string, boolean or double
.addAttributeData(ig, attributeRef, attribute)
ig |
igraph object |
attributeRef |
reference name; "node", "edge" or "network" |
attribute |
an attribute aspect |
igraph object
Internal function only for convenience
NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.