Search
Graph.createEdge Method
See Also
 





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

Namespace: MindFusion.Graphs
File: Graph.js

 Syntax

JavaScript  Copy Code

function createEdge (origin, destination, [owner])

 Parameters

origin

Vertex. The origin vertex.

destination

Vertex. The destination vertex.

owner
Optional.

Object. The owner of the new edge.

 Return Value

Edge. The newly created edge.

 See Also