
Convert graphNEL objects from the graph package to igraph
Source:R/conversion.R
igraph.from.graphNEL.Rd
igraph.from.graphNEL()
was renamed to graph_from_graphnel()
to create a more
consistent API.
Arguments
- graphNEL
The graphNEL graph.
- name
Logical scalar, whether to add graphNEL vertex names as an igraph vertex attribute called ‘
name
’.- weight
Logical scalar, whether to add graphNEL edge weights as an igraph edge attribute called ‘
weight
’. (graphNEL graphs are always weighted.)- unlist.attrs
Logical scalar. graphNEL attribute query functions return the values of the attributes in R lists, if this argument is
TRUE
(the default) these will be converted to atomic vectors, whenever possible, before adding them to the igraph graph.