| 1 |
/************************************************************************* |
| 2 |
* Copyright (c) 2014 AT&T Intellectual Property |
| 3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
| 6 |
* https://www.eclipse.org/legal/epl-v10.html |
| 7 |
* |
| 8 |
* Contributors: Details at https://graphviz.org |
| 9 |
*************************************************************************/ |
| 10 |
|
| 11 |
#pragma once |
| 12 |
|
| 13 |
/// color the edges of a graph so that conflicting edges are as distinct in |
| 14 |
/// color as possible |
| 15 |
/// |
| 16 |
/// @param color_scheme rgb, lab, gray, or a list of comma separated RGB colors |
| 17 |
/// in hex, like #ff0000,#00ff00 |
| 18 |
/// @param lightness of the form 0,70, specifying the range of lightness of LAB |
| 19 |
/// color. Ignored if scheme is not COLOR_LAB. |
| 20 |
/// @param g the graph |
| 21 |
/// @param angle if two edges cross at an angle < "angle", consider they as |
| 22 |
/// conflict |
| 23 |
/// @param accuracy how accurate when finding color of an edge to be as |
| 24 |
/// different from others |
| 25 |
/// @param check_edges_with_same_endpoint if TRUE, we will check edges with same |
| 26 |
/// end point and only consider them as conflict if their angle is very small. |
| 27 |
/// Edges that share an end point and is close to 180 degree are not consider |
| 28 |
/// conflict. |
| 29 |
/// @param seed random_seed. If negative, consider -seed as the number of random |
| 30 |
/// start iterations |
| 31 |
Agraph_t *edge_distinct_coloring(const char *color_scheme, int *lightness, |
| 32 |
Agraph_t *g, double angle, double accuracy, |
| 33 |
int check_edges_with_same_endpoint, int seed); |