qbiocode.apps.quvine.baselines.node2vec module#

Summary#

Functions:

run_node2vec

Run Node2Vec and return embeddings aligned to nodes.

Reference#

run_node2vec(graph, nodes, dimensions=64, walk_length=10, num_walks=10, p=1.0, q=0.5, window=5, min_count=1, workers=8, seed=None)[source]#

Run Node2Vec and return embeddings aligned to nodes.

Parameters:
  • graph (networkx.Graph)

  • nodes (List[node]) – Canonical node ordering (must match graph_data.nodes)