Module: @@data/graph

Helper functions for handling graph operations
Source:

Methods

(static) expandRoot(n, propertiesBySource, expandedEdges, expandedNodes, ancestors, classes) → {*}

Performs a DFS to get all the nodes for the given graph starting with provided node.
Parameters:
Name Type Description
n
propertiesBySource
expandedEdges
expandedNodes
ancestors
classes
Source:
Returns:
Type
*

(static) getConnectedEntities(p, edgesByNode) → {Object}

Returns all connected entities for a given property by following the edges.
Parameters:
Name Type Description
p
edgesByNode
Source:
Returns:
Type
Object

(static) isConnected(properties, entityIds) → {*}

Returns whether a graph consisting of given properties and entityIds is a connected component.
Parameters:
Name Type Description
properties
entityIds
Source:
Returns:
Type
*