Uprava vyslednej mapy scriptu kvoli prehladnosti
This commit is contained in:
parent
63d42a994b
commit
97104320f0
@ -383,21 +383,6 @@ def build_and_draw_pyvis_mindmap(analysis: MindMapAnalysis, output_file: str = "
|
||||
smooth={"enabled": True, "type": "cubicBezier", "forceDirection": "horizontal", "roundness": 0.55}
|
||||
)
|
||||
|
||||
# Voliteľné priečne sémantické väzby (jemná prerušovaná čiara, aby nerušili strom)
|
||||
tree_edges = set((p, c) for c, p in parent_of.items())
|
||||
for (src, tgt), rel_text in edge_relations.items():
|
||||
if (src, tgt) not in tree_edges and (tgt, src) not in tree_edges and src != central_id and tgt != central_id:
|
||||
G.add_edge(
|
||||
src,
|
||||
tgt,
|
||||
title=f"Priečny vzťah: {rel_text}",
|
||||
color={"color": "#BDC3C7", "highlight": "#E74C3C"},
|
||||
width=1.0,
|
||||
dashes=True,
|
||||
arrows={"to": {"enabled": True, "scaleFactor": 0.6}},
|
||||
smooth={"enabled": True, "type": "curvedCW", "roundness": 0.25}
|
||||
)
|
||||
|
||||
# 6. Generovanie PyVis HTML s vypnutou náhodnou fyzikou
|
||||
net = Network(height="920px", width="100%", bgcolor="#FFFFFF", font_color="#1A252F", directed=True)
|
||||
net.from_nx(G)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user