Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -608,13 +608,9 @@ 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=
|
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)
|
619 |
|
620 |
|
|
|
608 |
graph_store.add_triple(building_name, "has_sensor", sensor_id)
|
609 |
|
610 |
# Configuration for the graph visualization
|
611 |
+
agraph_config = Config(height=800, width=800, nodeHighlightBehavior=True, highlightColor="#F7A7A6", directed=True, collapsible=True)
|
|
|
|
|
|
|
|
|
612 |
|
613 |
+
# Display the graph
|
614 |
agraph(nodes=graph_store.getNodes(), edges=graph_store.getEdges(), config=agraph_config)
|
615 |
|
616 |
|