igraph.vs.all creates a vertex sequence with all vertices of a
graph. igraph.vs.vector creates a vertex sequence from a vector of
vertex ids.
igraph.vs.adj creates a vertex sequence containing the adjacent
vertices of a vertex.
igraph.vs.end, igraph.vs.step, igraph.vs.get
provide an iterator abstraction of a vertex set.
igraph.vs.end checks whether there is another vertex to step to
with the iterator. igraph.vs.get returns the vertex id at the
current position of the iterator. igraph.vs.step moves to the
next position.
igraph.vs.reset resets the iterator, this is equivalent to
creating a new iterator of the same type, with the same parameters.
vs$end, vs$step, vs$v provide a simpler
iterator-like interface. See the examples section below.
as.vector can be used on a vertex and edge sequence to coerce
it to a regular numeric vector.
igraph.es.all creates an edge sequence containing all edges in
the graph, their order will be arbitrary.
igraph.es.fromorder
creates an edge sequence with all edges. It is somewhat less efficient
than igraph.es.all, but the order of the edges is defined by
the starting vertex of the edge.
igraph.es.vector creates an edge set from a vector containing
edge ids.
igraph.es.adj creates an edge set containing the adjacent edges
of a vertex.
igraph.es.get returns the id of the edge at the current
iterator position.
igraph.es.from returns the starting vertex
of the current edge.
igraph.es.to returns the end vertex of the current edge.
igraph.es.end checks whether there are more edges in the edge
set to step to.
igraph.es.next steps to the next edge in the edge sequence.
igraph.es.reset resets the iterator, it is equivalent to but slightly
more efficient than creating a new edge sequence of the same type with
the same parameters.
es$end, es$e, es$from(graph) and
es$to(graph) provide a simpler iterator interface to edge
sequences, see the examples below.
Note that igraph.vs.next, igraph.vs.reset,
igraph.es.next and igraph.es.reset don't change the
iterator supplied as a parameter, but return the new, modified
iterator.