These functions are all-vertices version of neighbors()
and incident()
.
Usage
as_adjlist(graph, mode = 3L, loops = 1L, multiple = 1L)
as_inclist(graph, mode = 3L, loops = 1L)
Details
as_adjlist()
: Convert a graph to a list of adjacent vertices.
as_inclist()
: Convert a graph to a list of incident edges.
See also
neighbors()
and incident()
for single-vertex version.