R/core.R
to_py_graph.RdThe function motifr::is.directed is used to determine whether the
provided network is directed (if directed = FALSE).
to_py_graph(g, lvl_attr, relabel = TRUE, directed = NULL)
| g | statnet or igraph network object |
|---|---|
| lvl_attr | character vector specifying the attribute name where level
information is stored in |
| relabel | should nodes be relabelled with statnet |
| directed | whether the graph shall be treated as a directed graph. Per
default ( |
Python networkx graph object
The nodal attribute specified by lvl_attr indicates the levels of the
nodes. Values are automatically converted to integers. Levels must be
numbered starting with 0, 1, ….
#># }