small conveniences
Tara L Andrews [Wed, 22 Feb 2012 21:11:02 +0000 (22:11 +0100)]
lib/Text/Tradition/Collation.pm
lib/Text/Tradition/Parser/JSON.pm
lib/Text/Tradition/Parser/Tabular.pm

index 9076fb3..65984d6 100644 (file)
@@ -28,6 +28,7 @@ has 'relations' => (
        handles => {
                relationships => 'relationships',
                related_readings => 'related_readings',
+               get_relationship => 'get_relationship',
                del_relationship => 'del_relationship',
        },
        writer => '_set_relations',
index cc960b4..1d7b286 100644 (file)
@@ -182,6 +182,9 @@ sub parse {
        foreach my $rdg ( grep { $_->is_lacuna } $c->readings ) {
                $c->del_reading( $rdg ) unless $c->reading_witnesses( $rdg );
        }
+       
+       # Note that our ranks and common readings are set.
+       $c->_graphcalc_done(1);
 }
 
 =head2 make_nodes( $collation, $index, @tokenlist )
index 723c0aa..a561dde 100644 (file)
@@ -241,6 +241,9 @@ sub parse {
                                if $wit->has_layertext;
                }
        }
+       
+       # Note that our ranks and common readings are set.
+       $c->_graphcalc_done(1);
 }
 
 sub _make_nodes {