lincd
Version:
LINCD is a JavaScript library for building user interfaces with linked data (also known as 'structured data', or RDF)
16 lines (15 loc) • 647 B
TypeScript
import { NodeSet } from '../collections/NodeSet';
import { NamedNode } from '../models';
export declare class Order {
static propertiesByDepth(properties: NodeSet<NamedNode>): NodeSet<NamedNode>;
/**
* Counts the number of connections each node makes to antoher
* and then returns a new set of the same nodes sorted by that numb connections with the most connections first
* @param nodes
* @param property
* @param shortestPathFirst
* @returns {NodeSet<NamedNode>}
*/
static byCrossPaths(nodes: NodeSet, property: NamedNode, shortestPathFirst?: boolean): NodeSet;
private static getCrossPaths;
}