The graphNEL class is defined in the
graph package, it is another
way to represent graphs. These functions are provided to convert between
the igraph and the graphNEL objects.
An igraph graph object.
as_graphnel converts an igraph graph to a graphNEL graph. It
converts all graph/vertex/edge attributes. If the igraph graph has a
vertex attribute ‘
name’, then it will be used to assign
vertex names in the graphNEL graph. Otherwise numeric igraph vertex ids
will be used for this purpose.
as_graphnel returns a graphNEL 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 f0260d4 UNW- 10 10 -- Ring graph + attr: name (g/c), mutual (g/l), circular (g/l), name (v/c), weight | (e/n) + edges from f0260d4 (vertex names):  a--b a--j b--c c--d d--e e--f f--g g--h h--i i--j IGRAPH 3a9af1a DNW- 10 9 -- In-star + attr: name (g/c), mode (g/c), center (g/n), name (v/c), weight (e/n) + edges from 3a9af1a (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.