make_graph_weighted | R Documentation |
Given a graph, create a "weight" attribute set to 1 for the edges if it doesn't exist already.
make_graph_weighted(g)
g |
igraph graph |
igraph graph with either all edge weights set to 1 (if the original graph was unweighted), or to their original weights if they already existed (in this case, the graph isn't modified at all).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.