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
Use
weightsinstead. If supplied, the value is forwarded toweightsas a character edge attribute name.- 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()
