isa => 'Bool',
default => 1,
);
+
+has 'collapse_punctuation' => (
+ is => 'rw',
+ isa => 'Bool',
+ default => 1,
+ );
has 'ac_label' => (
is => 'rw',
if $endrank && $endrank == $reading->rank;
# Need not output nodes without separate labels
next if $reading->id eq $reading->text;
- my $label = $reading->text;
+ my $label = $reading->punctuated_form;
$label =~ s/\"/\\\"/g;
$dot .= sprintf( "\t\"%s\" [ label=\"%s\" ];\n", $reading->id, $label );
}
witness => 'string', # ID/label for a path
relationship => 'string', # ID/label for a relationship
extra => 'boolean', # Path key
- colocated => 'boolean', # Relationship key
+ scope => 'string', # Relationship key
non_correctable => 'boolean', # Relationship key
non_independent => 'boolean', # Relationship key
);
$node_el->setAttribute( 'id', $node_xmlid );
foreach my $d ( keys %node_data ) {
my $nval = $n->$d;
+ $nval = $n->punctuated_form if $d eq 'text';
_add_graphml_data( $node_el, $node_data_keys{$d}, $nval )
if defined $nval;
}
}
# Add the relationship graph to the XML
- $self->relations->as_graphml( $root );
+ $self->relations->as_graphml( $root, $graphml_ns, \%node_hash, \%edge_data_keys );
# Save and return the thing
my $result = decode_utf8( $graphml->toString(1) );