Spaces:
Running
Running
Ilyas KHIAT
commited on
Commit
·
507d746
1
Parent(s):
1e3f619
chatbot
Browse files
audit_page/knowledge_graph.py
CHANGED
|
@@ -71,11 +71,11 @@ def convert_neo4j_to_agraph(neo4j_graph):
|
|
| 71 |
edges.append(Edge(source=source_id, label=label, target=target_id))
|
| 72 |
|
| 73 |
# Define the configuration for Agraph
|
| 74 |
-
config = Config(width=
|
| 75 |
|
| 76 |
# Create the Agraph visualization
|
| 77 |
return_value = agraph(nodes=nodes, edges=edges, config=config)
|
| 78 |
-
|
| 79 |
return return_value
|
| 80 |
|
| 81 |
|
|
|
|
| 71 |
edges.append(Edge(source=source_id, label=label, target=target_id))
|
| 72 |
|
| 73 |
# Define the configuration for Agraph
|
| 74 |
+
config = Config(width=1200, height=950, directed=True, physics=False, hierarchical=False, nodeSpacing=500)
|
| 75 |
|
| 76 |
# Create the Agraph visualization
|
| 77 |
return_value = agraph(nodes=nodes, edges=edges, config=config)
|
| 78 |
+
|
| 79 |
return return_value
|
| 80 |
|
| 81 |
|