// deck.gl-community // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors import type {EdgeOptions} from '../../graph/edge'; import {error} from '../../utils/log'; export function basicEdgeParser(edge: any): Omit { const {id, directed, sourceId, targetId} = edge; if (sourceId === undefined || targetId === undefined) { error('Invalid edge: sourceId or targetId is missing.'); return null; } return { id, directed: directed || false, sourceId, targetId }; }