paroto.viz.cytoscape#
Cytoscape layout generator for Dash applications.
This module provides utilities for converting model graphs to Dash-Cytoscape format for interactive visualization with support for hierarchical parameter structure.
Attributes#
Functions#
|
Convert model graph to Cytoscape elements format. |
|
Convert hierarchy structure to Cytoscape elements with level information. |
Get default Cytoscape stylesheet for model graphs. |
|
Get Cytoscape stylesheet with level-based coloring. |
|
Get default Cytoscape layout configuration. |
|
Get hierarchical Cytoscape layout configuration using dagre. |
Module Contents#
- paroto.viz.cytoscape.model_graph_to_cytoscape(parameters, models, constraints, connections=None)#
Convert model graph to Cytoscape elements format.
- Parameters:
- Returns:
Cytoscape elements list with nodes and edges
- Return type:
- paroto.viz.cytoscape.hierarchy_to_cytoscape(graph, max_level=None)#
Convert hierarchy structure to Cytoscape elements with level information.
- paroto.viz.cytoscape.get_cytoscape_stylesheet()#
Get default Cytoscape stylesheet for model graphs.
- Returns:
Cytoscape stylesheet
- Return type:
- paroto.viz.cytoscape.get_hierarchical_cytoscape_stylesheet()#
Get Cytoscape stylesheet with level-based coloring.
- Returns:
Cytoscape stylesheet with level-specific colors
- Return type:
- paroto.viz.cytoscape.get_cytoscape_layout()#
Get default Cytoscape layout configuration.
- Returns:
Cytoscape layout configuration
- Return type:
- paroto.viz.cytoscape.get_hierarchical_cytoscape_layout()#
Get hierarchical Cytoscape layout configuration using dagre.
- Returns:
Cytoscape layout configuration optimized for hierarchies
- Return type:
- paroto.viz.cytoscape.params = ['V', 'e', 'd_t', 'f', 'E_p']#