NAME

PNI::Edge - is used to connect

SYNOPSIS

# Connects the output of a node to the input of another node.
my $edge = PNI::Edge->new( source => $output, target => $input );

ATTRIBUTES

source

my $out = $edge->source;

target

my $in = $edge->target;

METHODS

task

$edge->task;

If edge is connected, pass data from target to source.

to_hash

my $edge_hashref = $edge->to_hashref;

Returns an hash ref representing the edge.