In This Article
  • GraphCategory
  • GraphCategoryIdLike
  • GraphCategory

    /**
     * Graph catagories are used to categorize graph objects such as nodes or links.
     */
    export declare class GraphCategory extends GraphMetadataContainer {
        /**
         * For internal use only. Instances should be created via 
         * `GraphSchema.categories.getOrCreate()`.
         */
        private constructor();
        /**
         * Gets the unique id of the category.
         */
        get id(): GraphCategoryIdLike;
        /**
         * Gets or sets the category this category is based on.
         */
        get basedOn(): GraphCategory | undefined;
        set basedOn(value: GraphCategory | undefined);
        /**
         * Determines whether this category is based on the specified category.
         */
        isBasedOn(category: GraphCategoryIdLike | GraphCategory): boolean;
    }
    

    See Also

    GraphCategoryIdLike

    /**
     * Represents a valid id for a category.
     */
    export declare type GraphCategoryIdLike = string | symbol;
    

    See Also