MCPcopy Create free account
hub / github.com/effect-app/libs / getUndirectedNeighbors

Function getUndirectedNeighbors

repos/effect/packages/effect/src/Graph.ts:2862–2882  ·  view source on GitHub ↗
(
  graph: Graph<N, E, "undirected"> | MutableGraph<N, E, "undirected">,
  nodeIndex: NodeIndex
)

Source from the content-addressed store, hash-verified

2860 * ```
2861 *
2862 * @category options
2863 * @since 3.18.0
2864 */
2865export 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
2885const escapeGraphVizString = (value: string): string =>

Callers 5

Graph.tsFile · 0.85
isAcyclicFunction · 0.85
isBipartiteFunction · 0.85
getTraversalNeighborsFunction · 0.85
connectedComponentsFunction · 0.85

Calls 2

getMethod · 0.65
addMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…