new Edge(vert_i, weightopt)
Create a graph edge object. Defaults to unweighted unless an optional weight
argument is passed
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
vert_i |
integer | Target vertex id | |
weight |
number |
<optional> |
Edge weight/cost, a number in general |
- Source:
Members
target_v
Id of edge target vertex
- Source:
(nullable) weight :number
Edge weight/cost, is null (for unweigted) unless an optional weight parameter
was specified when edge was created
Type ▸
number
- Default Value:
- null
- Source: