graph.adjlist() was renamed to graph_from_adj_list() to create a more
consistent API.
Usage
graph.adjlist(adjlist, mode = c("out", "in", "all", "total"), duplicate = TRUE)Arguments
- adjlist
The adjacency list. It should be consistent, i.e. the maximum throughout all vectors in the list must be less than the number of vectors (=the number of vertices in the graph).
- mode
Character scalar, it specifies whether the graph to create is undirected (‘all’ or ‘total’) or directed; and in the latter case, whether it contains the outgoing (‘out’) or the incoming (‘in’) neighbors of the vertices.
- duplicate
Logical scalar. For undirected graphs it gives whether edges are included in the list twice. E.g. if it is
TRUEthen for an undirected{A,B}edgegraph_from_adj_list()expectsAincluded in the neighbors ofBandBto be included in the neighbors ofA.This argument is ignored if
modeisoutorin.
