Constructors
constructor
- new Edge(from: string, to: string, weight: number): Edge
-
Parameters
-
from: string
-
to: string
-
weight: number
Properties
from
from: string
to
to: string
weight
weight: number
Methods
setWeight
- setWeight(weight: number): void
-
Parameters
Returns void
Represents a weighted and directed connection from one vertex to another.