Algorithm::C3Algorithm::C3 is a module for merging hierarchies using the C3 algorithm. | |
Download |
Algorithm::C3 Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Stevan Little and Brandon L. Black
- Publisher web site:
- http://search.cpan.org/~blblack/
Algorithm::C3 Tags
Algorithm::C3 Description
Algorithm::C3 is a module for merging hierarchies using the C3 algorithm. Algorithm::C3 is a module for merging hierarchies using the C3 algorithm.SYNOPSIS use Algorithm::C3; # merging a classic diamond # inheritence graph like this: # # # / # # / # my @merged = Algorithm::C3::merge( 'D', sub { # extract the ISA array # from the package no strict 'refs'; @{$_ . '::ISA'}; } ); print join ", " => @merged; # prints D, B, C, AThis module implements the C3 algorithm. I have broken this out into it's own module because I found myself copying and pasting it way too often for various needs. Most of the uses I have for C3 revolve around class building and metamodels, but it could also be used for things like dependency resolution as well since it tends to do such a nice job of preserving local precendence orderings. Requirements: · Perl
Algorithm::C3 Related Software