Spaces:
Sleeping
Sleeping
File size: 613 Bytes
d97a439 fdfe8da d97a439 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
from st_link_analysis import EdgeStyle, NodeStyle
from src.config import config
def get_node_styles() -> list[NodeStyle]:
node_styles = []
for class_name in config.ICON_MAPPING.keys():
color = config.COLOR_MAPPING.get(class_name, "#888888")
icon = config.ICON_MAPPING.get(class_name, None)
node_styles.append(NodeStyle(
label=class_name,
color=color,
icon=icon,
))
return node_styles
def get_edge_styles() -> list[EdgeStyle]:
edge_styles = [
EdgeStyle(
label="CITES",
)
]
return edge_styles |