(.js)
laraImport("lara.graphs.Graphs");
(.lara)
import lara.graphs.Graphs;
Graphs
Utility class related with graph creation and manipulation.
Current implementation uses Cytoscape.js (https://js.cytoscape.org/)
addEdge(graph, sourceNode, targetNode, edgeData)
addNode(graph, nodeData)
isLeaf(node, [loopsAreLeafs = false])
loadLibrary()
newGraph([config = {}])
removeNode(graph, node, edgeMap)
Removes a node from the graph. Before removing the node, creates connections between all connecting sources and targets.
toDot(graph, dotFormatter)