$self->set_attribute( 'class', 'relationship' );
- my( $source, $target ) = @{$self->this_relation};
- if( $source->has_position && $target->has_position ) {
- # Harmonize the positions.
- $source->match_position( $target );
- }
unless( $self->primary_relation ) {
$self->primary_relation( [ $self->this_relation->[0]->label,
$self->this_relation->[1]->label ] );
$opts->{'non_independent'} = $e->{'non_independent'}
if exists $e->{'non_independent'};
warn "No relationship type for relationship edge!" unless $opts->{'type'};
- $collation->add_relationship( $from->{$IDKEY}, $to->{$IDKEY}, $opts );
+ my( $ok, @result ) = $collation->add_relationship( $from->{$IDKEY}, $to->{$IDKEY}, $opts );
+ unless( $ok ) {
+ warn "Did not add relationship: @result";
+ }
}
}