# NOT RUN {
# Create a random graph
graph <-
create_random_graph(
n = 10, m = 22,
set_seed = 23)
# Get the Jaccard similarity values for
# nodes `5`, `6`, and `7`
get_jaccard_similarity(graph, nodes = 5:7)
#> 5 6 7
#> 5 1.000 0.333 0.286
#> 6 0.333 1.000 0.375
#> 7 0.286 0.375 1.000
# }
Run the code above in your browser using DataLab