/**
 * @copyright Sister Software
 * @license AGPL-3.0
 * @author Teffen Ellis, et al.
 */
import { Sequence } from "mailwoman/core/resources";
/**
 * A graph structure for storing relationships between nodes.
 */
export class Graph {
    /**
     * Parents of the graph, i.e. upward connections to the graph.
     */
    parents = new Sequence();
    /**
     * Children of the graph, i.e. downward connections to the graph.
     */
    children = new Sequence();
    /**
     * Previous siblings of the graph, i.e. leftward connections to the graph.
     */
    previousSiblings = new Sequence();
    /**
     * Next siblings of the graph, i.e. rightward connections to the graph.
     */
    nextSiblings = new Sequence();
    /**
     * Phrases identified in the graph, i.e. a sequence of nodes composing a classification.
     */
    phrases = new Sequence();
    get nextSibling() {
        return this.nextSiblings.first;
    }
    get previousSibling() {
        return this.previousSiblings.first;
    }
}
//# sourceMappingURL=Graph.js.map