def __init__(self, graph, path): Embedding.__init__(self, graph) self.graph = graph self.walks = None self.embedding = None self.path = path self.set_paths(path)
def __init__(self, graph, save_path): Embedding.__init__(self, graph) self.set_paths(save_path) self.walker = RandomWalker(graph)
def __init__(self, graph, path): Embedding.__init__(self, graph) self.nodes = np.asarray(list(graph.nodes())) self.context_embedding = None self.center_embedding = None self.set_paths(path)