Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -608,7 +608,11 @@ with tab3:
|
|
608 |
graph_store.add_triple(building_name, "has_sensor", sensor_id)
|
609 |
|
610 |
# Configuration for the graph visualization
|
611 |
-
agraph_config = Config(height=600, width=600, nodeHighlightBehavior=True, highlightColor="#F7A7A6",
|
|
|
|
|
|
|
|
|
612 |
|
613 |
# Display the graph
|
614 |
agraph(nodes=graph_store.getNodes(), edges=graph_store.getEdges(), config=agraph_config)
|
|
|
608 |
graph_store.add_triple(building_name, "has_sensor", sensor_id)
|
609 |
|
610 |
# Configuration for the graph visualization
|
611 |
+
agraph_config = Config(height=600, width=600, nodeHighlightBehavior=True, highlightColor="#F7A7A6",
|
612 |
+
directed=True, collapsible=True,
|
613 |
+
node={'labelProperty': 'label', 'size': 1000}
|
614 |
+
|
615 |
+
)
|
616 |
|
617 |
# Display the graph
|
618 |
agraph(nodes=graph_store.getNodes(), edges=graph_store.getEdges(), config=agraph_config)
|