AddEdgeOptions
Options for the addEdge method in the VisuallyJsModel class.
Properties
anchors?
optionalanchors:object
Optional anchors for the edge.
source?
optionalsource:SingleAnchorSpec
target?
optionaltarget:SingleAnchorSpec
cost?
optionalcost:number
Optional edge cost. Defaults to 1.
data?
optionaldata:ObjectData&LineStyle
Optional backing data for the edge.
directed?
optionaldirected:boolean
By default edges are not directed. This is used only when computing paths between vertices.
geometry?
optionalgeometry:any
Optional edge geometry.
source
Source for the edge - a vertex, vertex id, or canvas location.
target
Target for the edge - a vertex, vertex id, or canvas location.