去掉MCP框架,重构

This commit is contained in:
lixinyue
2026-01-19 12:05:37 +08:00
parent 622e67e952
commit 3606000740

View File

@@ -8,12 +8,11 @@ Reference:
import logging
import html
from typing import Any, cast
# from graspologic.partition import hierarchical_leiden
# from graspologic.utils import largest_connected_component
from graspologic.partition import hierarchical_leiden
from graspologic.utils import largest_connected_component
import networkx as nx
from networkx import is_empty
hierarchical_leiden=''
largest_connected_component=''
def _stabilize_graph(graph: nx.Graph) -> nx.Graph:
"""Ensure an undirected graph with the same relationships will always be read the same way."""