Class: Edge

Edge(vert_i, weightopt)

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
Author:
  • Muhammad Al-Hashimi
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
Typenumber
Default Value:
  • null
Source: