Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201919

Similarity as edge attribute in iGraph

$
0
0

Lets say we have some graph g and then we compute some similarity between each pair of nodes from g:

g <- graph.ring(10)
g_sim <- similarity.dice(g)

The question is: how to use data from g_sim to assign weights to the edges from g? In other words: if there is and edge A--B in g, I want to have an attribute for that edge that is equal to value that we have for the pair A,B in g_sim.


Viewing all articles
Browse latest Browse all 201919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>