get.incidence() was renamed to as_biadjacency_matrix() to create a more
consistent API.
Arguments
- graph
The input graph. The direction of the edges is ignored in directed graphs.
- types
An optional vertex type vector to use instead of the
typevertex attribute. You must supply this argument if the graph has notypevertex attribute.- attr
Either
NULLor a character string giving an edge attribute name. IfNULL, then a traditional bipartite adjacency matrix is returned. If notNULLthen the values of the given edge attribute are included in the bipartite adjacency matrix. If the graph has multiple edges, the edge attribute of an arbitrarily chosen edge (for the multiple edges) is included.- names
Logical scalar, if
TRUEand the vertices in the graph are named (i.e. the graph has a vertex attribute calledname), then vertex names will be added to the result as row and column names. Otherwise the ids of the vertices are used as row and column names.- sparse
Logical scalar, if it is
TRUEthen a sparse matrix is created, you will need theMatrixpackage for this.
Related documentation in the C library
get_biadjacency(), get_edgelist(), vcount(), edges(), get_eids(), ecount()
