raesl.canopy
¶
Module to ESL derived graph to a graph suitable for exporting to Canopy.
add_canopy_annotations
¶
add_canopy_annotations(
graph: Graph,
node_kinds: Optional[List[str]] = None,
edge_kinds: Optional[List[str]] = None,
)
Convert ESL derived graph to a graph suitable for exporting to Canopy.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
graph
|
Graph
|
Graph to be converted |
required |
node_kinds
|
Optional[List[str]]
|
List of node kinds to be considered in conversion. |
None
|
edge_kinds
|
Optional[List[str]]
|
List of edge kinds to be considered in conversion. |
None
|
Returns Converted graph object.
Source code in src/raesl/canopy/__init__.py
html
¶
get_comp_node_html_table
¶
Returns a HTML grid table.
Source code in src/raesl/canopy/html.py
get_edge_html_text
¶
Yields ESL info belonging to an edge.
Source code in src/raesl/canopy/html.py
get_spec_node_html_text
¶
Yields ESL info belonging to spec node in html format.