Graphora API
    Preparing search index...

    Interface GraphologyAdapterOptions<NodeAttributes, EdgeAttributes, NodeData, EdgeData>

    interface GraphologyAdapterOptions<
        NodeAttributes extends GraphologyAttributes = GraphologyAttributes,
        EdgeAttributes extends GraphologyAttributes = GraphologyAttributes,
        NodeData = NodeAttributes,
        EdgeData = EdgeAttributes,
    > {
        getEdgeLabel?: (
            edgeId: GraphId,
            attributes: EdgeAttributes,
        ) => string | undefined;
        getNodeLabel?: (
            nodeId: GraphId,
            attributes: NodeAttributes,
        ) => string | undefined;
        getNodePosition?: (
            nodeId: GraphId,
            attributes: NodeAttributes,
        ) => Point | null | undefined;
        mapEdgeAttributes?: (
            edgeId: GraphId,
            attributes: EdgeAttributes,
            sourceId: GraphId,
            targetId: GraphId,
        ) => GraphAttributes | undefined;
        mapEdgeData?: (
            edgeId: GraphId,
            attributes: EdgeAttributes,
            sourceId: GraphId,
            targetId: GraphId,
        ) => EdgeData | undefined;
        mapNodeAttributes?: (
            nodeId: GraphId,
            attributes: NodeAttributes,
        ) => GraphAttributes | undefined;
        mapNodeData?: (
            nodeId: GraphId,
            attributes: NodeAttributes,
        ) => NodeData | undefined;
    }

    Type Parameters

    Index
    getEdgeLabel?: (
        edgeId: GraphId,
        attributes: EdgeAttributes,
    ) => string | undefined
    getNodeLabel?: (
        nodeId: GraphId,
        attributes: NodeAttributes,
    ) => string | undefined
    getNodePosition?: (
        nodeId: GraphId,
        attributes: NodeAttributes,
    ) => Point | null | undefined
    mapEdgeAttributes?: (
        edgeId: GraphId,
        attributes: EdgeAttributes,
        sourceId: GraphId,
        targetId: GraphId,
    ) => GraphAttributes | undefined
    mapEdgeData?: (
        edgeId: GraphId,
        attributes: EdgeAttributes,
        sourceId: GraphId,
        targetId: GraphId,
    ) => EdgeData | undefined
    mapNodeAttributes?: (
        nodeId: GraphId,
        attributes: NodeAttributes,
    ) => GraphAttributes | undefined
    mapNodeData?: (
        nodeId: GraphId,
        attributes: NodeAttributes,
    ) => NodeData | undefined