MindFusion.Diagramming for JavaScript Programmer's Guide
Graph Methods
 


 Public Methods

  Name Description

addEdge

Adds an existing edge to the graph.

clone

Creates an exact copy of the current graph.

createEdge

Creates a new edge connecting the specified vertices and adds it to the graph.

createVertex

Creates a new vertex with the specified position and size and adds it to the graph.

getConnectedComponents

Returns a list with the connected subgraphs in the current graph.

makeAcyclic

Makes the graph acyclic by reversing the direction of selected edges.

removeEdge

Removes an edge from the graph.

tree

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.

 See Also

Graph Class
MindFusion.Graphs Namespace