Creates a new edge connecting the specified vertices and adds it to the graph.
Namespace: MindFusion.Graphs
Package: Graph.js
JavaScript Copy Code |
---|
function createEdge (origin, destination, [owner]) |
Vertex. The origin vertex.
Vertex. The destination vertex.
Object. The owner of the new edge.
Edge. The newly created edge.