Ilyas KHIAT commited on
Commit
507d746
·
1 Parent(s): 1e3f619
Files changed (1) hide show
  1. audit_page/knowledge_graph.py +2 -2
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=750, height=950, directed=True, physics=True, hierarchical=False)
75
 
76
  # Create the Agraph visualization
77
  return_value = agraph(nodes=nodes, edges=edges, config=config)
78
- st.write(return_value)
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