export default class NeighborhoodOpticReadResult {
    nodeId;
    direction;
    edges;
    completeness;
    cursor;
    readIdentity;
    constructor(options) {
        this.nodeId = options.nodeId;
        this.direction = options.direction;
        this.edges = freezeEdges(options.edges);
        this.completeness = options.completeness;
        this.cursor = options.cursor;
        this.readIdentity = options.readIdentity;
        Object.freeze(this);
    }
}
function freezeEdges(edges) {
    return Object.freeze(edges.map((edge) => Object.freeze({
        direction: edge.direction,
        neighborId: edge.neighborId,
        label: edge.label,
    })));
}
