/** * A Graph Database designed for front end data visualization * * @class GraphDatabase * @private * @summary * * ``` javascript * import { GraphDatabase } from 'hord'; * ``` * * @param {object} [settings] * @param {Model} [settings.nodeModel] * @param {Model} [settings.linkModel] * @param {Array} [settings.nodes] * @param {Array} [settings.links] */ export default class GraphDatabase { constructor(settings?: {}); whenReady(): any; /** * Set the nodes. An 'id' property is required for all nodes and can be a `String` or a `Number`. * * @memberOf GraphDatabase * @instance * * @param {Array|Collection} nodes - The nodes or vertices of the graph. * * @returns {Promise} If getting the nodes then resolves with the nodes. */ nodes(nodes: any[] | Collection): Promise; /** * Add nodes. An 'id' property is required for all nodes and can be a `String` or a `Number`. * * @memberOf GraphDatabase * @instance * * @param {Array|Collection} nodes - The nodes or vertices of the graph. * * @returns {Promise} */ addNodes(nodes: any[] | Collection): Promise; /** * Set the links. If link.source or link.target of any link doesn't map to an existing node.id, or is not already mapped to a node, then the link is removed. * * @memberOf GraphDatabase * @instance * * @param {Array|Collection} links - The links or edges of the graph. * * @returns {Promise} If getting the nodes then resolves with the nodes. */ links(links: any[] | Collection): Promise; /** * Add links. If link.source or link.target of any link doesn't map to an existing node.id, or is not already mapped to a node, then the link is removed. * * @memberOf GraphDatabase * @instance * * @param {Array|Collection} links - The links or edges of the graph. * * @returns {Promise} */ addLinks(links: any[] | Collection): Promise; get query(): { readonly nodes: { filter(matcher: any): any; readonly in: any; readonly out: any; readonly both: any; readonly inLink: { filter(matcher: any): any; readonly in: any; readonly out: any; readonly both: any; readonly inNode: any; readonly outNode: any; readonly bothNode: any; then(callback: any): any; }; readonly outLink: { filter(matcher: any): any; readonly in: any; readonly out: any; readonly both: any; readonly inNode: any; readonly outNode: any; readonly bothNode: any; then(callback: any): any; }; readonly bothLink: { filter(matcher: any): any; readonly in: any; readonly out: any; readonly both: any; readonly inNode: any; readonly outNode: any; readonly bothNode: any; then(callback: any): any; }; extent(depth?: number): any; then(callback: any): any; }; readonly links: { filter(matcher: any): any; readonly in: any; readonly out: any; readonly both: any; readonly inNode: any; readonly outNode: any; readonly bothNode: any; then(callback: any): any; }; }; shortestPaths(source: any, target: any): any; } import Collection from './Collection.js'; //# sourceMappingURL=GraphDatabase.d.ts.map