ExposoGraph.viewer_dash¶
Advanced Dash Cytoscape viewer helpers, including filter application, detail-panel payload generation, app creation, and notebook/app launch hooks.
Advanced Dash Cytoscape viewer for ExposoGraph.
- class ExposoGraph.viewer_dash.ViewerState(elements: 'list[dict[str, Any]]', layout: 'dict[str, Any]', visible_node_count: 'int', visible_edge_count: 'int', node_type_counts: 'dict[str, int]', edge_type_counts: 'dict[str, int]')[source]¶
- Parameters:
- ExposoGraph.viewer_dash.apply_viewer_filters(bundle, *, search_query='', node_types=None, edge_types=None, carcinogen_group=None, layout_mode=None, focus_node_id=None, focus_edge_id=None)[source]¶
- Parameters:
- Return type:
- ExposoGraph.viewer_dash.create_dash_viewer_app(source, *, visibility=GraphVisibility.ALL, positions=None, layout_mode=ViewerLayoutMode.PRESET, title=None)[source]¶
- Parameters:
source (GraphEngine | KnowledgeGraph | CytoscapeBundle | Mapping[str, Any] | str | Path)
visibility (GraphVisibility | str)
layout_mode (ViewerLayoutMode | str)
title (str | None)
- Return type:
- ExposoGraph.viewer_dash.launch_dash_viewer(source, *, visibility=GraphVisibility.ALL, positions=None, layout_mode=ViewerLayoutMode.PRESET, title=None, host='127.0.0.1', port=8050, debug=False, jupyter_mode=None)[source]¶
- Parameters:
source (GraphEngine | KnowledgeGraph | CytoscapeBundle | Mapping[str, Any] | str | Path)
visibility (GraphVisibility | str)
layout_mode (ViewerLayoutMode | str)
title (str | None)
host (str)
port (int)
debug (bool)
jupyter_mode (str | None)
- Return type: