-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor data analysis workflow for better collaboration
- Loading branch information
1 parent
cb8ef66
commit 46b5b78
Showing
3 changed files
with
43 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from langgraph.graph import Graph | ||
|
||
|
||
class PlantUMLGraph: | ||
def __init__(self, graph: Graph): | ||
self.graph = graph | ||
|
||
def draw_plantuml(self) -> str: | ||
plantuml = [] | ||
graph_json = self.graph.to_json()['graph'] | ||
graph_nodes = graph_json['nodes'] | ||
graph_edges = graph_json['edges'] | ||
plantuml.append("@startuml") | ||
for node in graph_nodes: | ||
pass | ||
# plantuml.append(f"class {node['id']} {{") | ||
# for attr in node['attrs']: | ||
# plantuml.append(f" {attr['key']} : {attr['value']}") | ||
# plantuml.append("}") | ||
|
||
for edge in graph_edges: | ||
source_node = edge['source'] if edge['source'] != '__start__' else '(*)' | ||
target_node = edge['target'] if edge['target'] != '__end__' else '(*)' | ||
plantuml.append(f"{source_node} --> {target_node}") | ||
|
||
plantuml.append("@enduml") | ||
return "\n".join(plantuml) | ||
|
||
def print_plantuml(self): | ||
print(self.draw_plantuml()) |
44 changes: 9 additions & 35 deletions
44
...nggraph/network_operations_analysis_assistant/network_operations_analysis_assistant.pluml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,11 @@ | ||
@startuml | ||
start | ||
|
||
:网络运营经理 (NetworkOpsManager); | ||
:接收统计报表并初步审核; | ||
:召集分析会议; | ||
|
||
:无线网络工程师 (WirelessNetworkEngineer); | ||
:分析无线网络性能和资源数据; | ||
|
||
|
||
:数据分析师 (DataAnalyst); | ||
:深入挖掘数据,提供建议; | ||
:准备数据可视化报告; | ||
|
||
:网络维护人员 (NetworkMaintenanceTech); | ||
:确认并解决技术问题; | ||
|
||
|
||
:IT运营经理 (ITOpsManager); | ||
:协调IT资源,支持分析和解决问题; | ||
:优化网络操作流程; | ||
|
||
:客户服务经理 (CustomerServiceManager); | ||
:整理客户投诉和反馈; | ||
|
||
|
||
:高层管理人员 (ExecutiveManagement); | ||
:审核整体报告和建议; | ||
:批准必要的优化项目; | ||
|
||
:质量保证(QA)团队 (QATeam); | ||
:评估最终网络服务质量; | ||
:确保符合公司标准和法规; | ||
|
||
stop | ||
(*) --> networkOpsManager | ||
networkOpsManager --> dataAnalyst | ||
networkOpsManager --> data_tool | ||
networkOpsManager --> (*) | ||
dataAnalyst --> networkOpsManager | ||
dataAnalyst --> data_tool | ||
dataAnalyst --> (*) | ||
data_tool --> networkOpsManager | ||
data_tool --> dataAnalyst | ||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters