Determines edge colors based on weights, explicit colors, or defaults.
resolve_edge_colors(
edges,
edge.color = NULL,
posCol = "#2E7D32",
negCol = "#C62828",
default_col = "gray50"
)Vector of colors for each edge.
Edge data frame with from, to, weight columns.
User-specified edge color(s) or NULL.
Color for positive weights.
Color for negative weights.
Default color when no weight.