The double bracket operator can be used on vertex sequences, to print the meta-data (vertex attributes) of the vertices in the sequence.
## S3 method for class 'igraph.vs' x[[...]]
A vertex sequence.
Additional arguments, passed to
Technically, when used with vertex sequences, the double bracket operator does exactly the same as the single bracket operator, but the resulting vertex sequence is printed differently: all attributes of the vertices in the sequence are printed as well.
[.igraph.vs for more about indexing vertex sequences.
The double bracket operator returns another vertex sequence, with meta-data (attribute) printing turned on. See details below.
Other vertex and edge sequence operations:
1 2 3 4 5 6 7
Attaching package: 'igraph' The following objects are masked from 'package:stats': decompose, spectrum The following object is masked from 'package:base': union + 10/10 vertices, named:  A B C D E F G H I J + 10/10 vertices, named: color name 1 red A 2 red B 3 red C 4 red D 5 red E 6 red F 7 red G 8 red H 9 red I 10 red J + 5/10 vertices, named:  A B C D E + 5/10 vertices, named: color name 1 red A 2 red B 3 red C 4 red D 5 red E
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.