kingjs/poset
@Exports all @kingjs/poset.*
functionality in one package.
Usage
var poset = require('@kingjs/poset');
Interfaces
declare interface EncodedPoset {
[index: string]: any
}
A descriptor whose every property name is a concatenation of a vertex name and its adjacent vertices' names delimited by $
, and whose every property value contains the properties of the corresponding vertex.
declare interface AdjacencyList {
[index: string]: string[]
}
A descriptor whose every property name represents a named vertex and whose every property value is an array containing the names of the associated vertices' values.
A vertex found in an adjacency list that has no corresponding property of the same name on the descriptor is still a valid and is simply assumed to have no outbound edges.
declare interface VertexProperties {
[index: string]: any
}
A descriptor whose every property name a vertex name, and whose every property value contains the properties of the corresponding vertex.
API
Install
With npm installed, run
$ npm install @kingjs/poset
License
MIT