Skip to content

flixopt.network_app

Classes

VisualizationConfig

Configuration constants for the visualization

Functions

flow_graph

flow_graph(flow_system: FlowSystem) -> networkx.DiGraph

Convert FlowSystem to NetworkX graph - simplified and more robust

make_cytoscape_elements

make_cytoscape_elements(graph: DiGraph) -> List[Dict[str, Any]]

Convert NetworkX graph to Cytoscape elements

create_color_picker_input

create_color_picker_input(label: str, input_id: str, default_color: str)

Create a compact color picker with DAQ ColorPicker

create_style_section

create_style_section(title: str, children: List)

Create a collapsible section for organizing controls

create_sidebar

create_sidebar()

Create the main sidebar with improved organization

shownetwork

shownetwork(graph: DiGraph)

Main function to create and run the network visualization