import { assert } from "../../../../assert.js";

/**
 *
 * @param {TopoEdge} edge
 * @param {TopoVertex} vertex
 * @returns {boolean}
 */
export function query_vertex_in_edge(edge, vertex) {
    assert.notNull(edge, 'edge');

    return edge.v0 === vertex || edge.v1 === vertex;
}

