Description Usage Arguments Details Value See Also Examples
This is a helper function that simplifies adding and deleting edges to/from graphs.
1 2 3 |
... |
See details below. |
edges
is an alias for edge
.
When adding edges via +
, all unnamed arguments of
edge
(or edges
) are concatenated, and then passed to
add_edges
. They are interpreted as pairs of vertex ids,
and an edge will added between each pair. Named arguments will be
used as edge attributes for the new edges.
When deleting edges via -
, all arguments of edge
(or
edges
) are concatenated via c()
and passed to
delete_edges
.
A special object that can be used with together with igraph graphs and the plus and minus operators.
Other functions for manipulating graph structure:
+.igraph()
,
add_edges()
,
add_vertices()
,
delete_edges()
,
delete_vertices()
,
igraph-minus
,
path()
,
vertex()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
Attaching package: 'igraph'
The following objects are masked from 'package:stats':
decompose, spectrum
The following object is masked from 'package:base':
union
+ 11/11 edges from 70f2939:
tail head tid hid color
1 1 2 1 2 red
2 2 3 2 3 red
3 3 4 3 4 red
4 4 5 4 5 red
5 5 6 5 6 red
6 6 7 6 7 red
7 7 8 7 8 red
8 9 10 9 10 red
9 1 10 1 10 red
10 1 5 1 5 green
11 2 6 2 6 blue
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.