examples/node2vec_main.py
def main(args):
    '''
    Pipeline for representational learning for all nodes in a graph.
    '''
    nx_G = read_graph()
    G = Graph(nx_G, args.directed, args.p, args.q)
    G.preprocess_transition_probs()
    walks = G.simulate_walks(args.num_walks, args.walk_length)
    print("开始执行")
    learn_embeddings(walks)

    Pipeline for representational learning for all nodes in a graph.
    
Pipeline for representational learning for all nodes in a graph.
Pipeline for representational learning for all nodes in a graph .
def main(args):
    nx_G = read_graph()
    G = Graph(nx_G, args.directed, args.p, args.q)
    G.preprocess_transition_probs()
    walks = G.simulate_walks(args.num_walks, args.walk_length)
    print("开始执行")
    learn_embeddings(walks)
def main ( args ) : nx_G = read_graph ( ) G = Graph ( nx_G , args . directed , args . p , args . q ) G . preprocess_transition_probs ( ) walks = G . simulate_walks ( args . num_walks , args . walk_length ) print ( "开始执行") learn_embeddings ( walks )
Pipeline for representational learning for all nodes in a graph.
Pipeline for representational learning for all nodes in a graph .
'''
    Pipeline for representational learning for all nodes in a graph.
    '''
args