graph_from_edgelist creates a graph from an edge list. Its argument
is a two-column matrix, each row defines one edge. If it is
a numeric matrix then its elements are interpreted as vertex ids. If
it is a character matrix then it is interpreted as symbolic vertex
names and a vertex id will be assigned to each name, and also a
name vertex attribute will be added.
1 2 3
The edge list, a two column matrix, character or numeric.
Whether to create a directed graph.
An igraph graph.
Other determimistic constructors:
1 2 3 4 5
Attaching package: 'igraph' The following objects are masked from 'package:stats': decompose, spectrum The following object is masked from 'package:base': union IGRAPH DN-- 3 2 -- + attr: name (v/c) + edges (vertex names):  foo->bar bar->foobar IGRAPH D--- 10 10 -- + edges:  1-> 2 2-> 3 3-> 4 4-> 5 5-> 6 6-> 7 7-> 8 8-> 9 9->10 10-> 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.