The graphNEL class is defined in the
graph package, it is another
way to represent graphs.
graph_from_graphnel takes a graphNEL
graph and converts it to an igraph graph. It handles all
graph/vertex/edge attributes. If the graphNEL graph has a vertex
attribute called ‘
name’ it will be used as igraph vertex
name’ and the graphNEL vertex names will be
The graphNEL graph.
Logical scalar, whether to add graphNEL vertex names as an
igraph vertex attribute called ‘
Logical scalar, whether to add graphNEL edge weights as an
igraph edge attribute called ‘
Logical scalar. graphNEL attribute query functions
return the values of the attributes in R lists, if this argument is
Because graphNEL graphs poorly support multiple edges, the edge attributes of the multiple edges are lost: they are all replaced by the attributes of the first of the multiple edges.
graph_from_graphnel returns an igraph graph object.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
Attaching package: 'igraph' The following objects are masked from 'package:stats': decompose, spectrum The following object is masked from 'package:base': union IGRAPH 57ded7f UNW- 10 10 -- Ring graph + attr: name (g/c), mutual (g/l), circular (g/l), name (v/c), weight | (e/n) + edges from 57ded7f (vertex names):  a--b a--j b--c c--d d--e e--f f--g g--h h--i i--j IGRAPH 41082e4 DNW- 10 9 -- In-star + attr: name (g/c), mode (g/c), center (g/n), name (v/c), weight (e/n) + edges from 41082e4 (vertex names):  b->a c->a d->a e->a f->a g->a h->a i->a j->a
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.