__construct() __construct(string $vertex1, string $vertex2, float $value = null) Constructor for DirectedEdge object. Parameters string $vertex1 ID of first vertex string $vertex2 ID of second vertex float $value The value/weight the edge should hold
getValue() getValue() : float Returns value/weight associated with this edge. Returns float — Value/weight associated with this edge
setValue() setValue(float $value = null) Sets the value/weight associated with this edge. Parameters float $value Value/weight to be associated with this edge
getConnectedVertices() getConnectedVertices() : array Returns an array of vertices connected by this edge. Returns array — Vertices connected by this edge