Description Usage Arguments Details Value Examples
The function motifr::is.directed
is used to determine whether the
provided network is directed (if directed = FALSE
).
1 | 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 ( |
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, ….
Python networkx graph object
1 2 3 4 | ## Not run:
to_py_graph(motifr::dummy_net, lvl_attr = "sesType")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.