( graph: Graph<N, E, "undirected"> | MutableGraph<N, E, "undirected">, nodeIndex: NodeIndex )
| 2860 | * ``` |
| 2861 | * |
| 2862 | * @category options |
| 2863 | * @since 3.18.0 |
| 2864 | */ |
| 2865 | export interface GraphVizOptions<N, E> { |
| 2866 | /** |
| 2867 | * Function to generate custom labels for nodes. |
| 2868 | * Defaults to String(data) if not provided. |
| 2869 | */ |
| 2870 | readonly nodeLabel?: (data: N) => string |
| 2871 | |
| 2872 | /** |
| 2873 | * Function to generate custom labels for edges. |
| 2874 | * Defaults to String(data) if not provided. |
| 2875 | */ |
| 2876 | readonly edgeLabel?: (data: E) => string |
| 2877 | |
| 2878 | /** |
| 2879 | * Name for the DOT graph. |
| 2880 | * Defaults to "G" if not provided. |
| 2881 | */ |
| 2882 | readonly graphName?: string |
| 2883 | } |
| 2884 | |
| 2885 | const escapeGraphVizString = (value: string): string => |
no test coverage detected
searching dependent graphs…