为节点生成向量
(self, algorithm: str)
| 409 | # self._graph.add_edge(source_node_id, target_node_id, **edge_data) |
| 410 | |
| 411 | async def embed_nodes(self, algorithm: str) -> tuple[np.ndarray, list[str]]: |
| 412 | """为节点生成向量""" |
| 413 | if algorithm not in self._node_embed_algorithms: |
| 414 | raise ValueError(f"Node embedding algorithm {algorithm} not supported") |
| 415 | return await self._node_embed_algorithms[algorithm]() |
| 416 | |
| 417 | async def _node2vec_embed(self): |
| 418 | """为节点生成向量""" |
nothing calls this directly
no outgoing calls
no test coverage detected