PHP Class Trismegiste\Mondrian\Graph\Edge

Mostra file Open project: trismegiste/mondrian

Protected Properties

Property Type Description
$from
$to

Public Methods

Method Description
__construct ( Vertex $from, Vertex $to ) Since edge has one source vertex and one target vertex it is builded with two vertices in its constructor
getSource ( ) : Vertex Get the source vertex
getTarget ( ) : Vertex Get the target vertex

Method Details

__construct() public method

Since edge has one source vertex and one target vertex it is builded with two vertices in its constructor
public __construct ( Vertex $from, Vertex $to )
$from Vertex
$to Vertex

getSource() public method

Get the source vertex
public getSource ( ) : Vertex
return Vertex

getTarget() public method

Get the target vertex
public getTarget ( ) : Vertex
return Vertex

Property Details

$from protected_oe property

protected $from

$to protected_oe property

protected $to