Search
Graph.tree Method (Vertex, Boolean, Boolean)
See Also
 






Returns a new graph object containing a subset of the vertices and edges of the original graph, such that the new graph is a tree.

Namespace: MindFusion.Graphs
File: Graph.js

 Syntax

JavaScript  Copy Code

function tree (root, enableAssistants, compactAssistants)

 Parameters

root

Vertex. The desired root vertex of the tree.

enableAssistants

compactAssistants

 Return Value

Graph. The newly created tree.

 See Also