Nice. I&#x27;ve implemented basically the same thing about 5 years ago: <a href="https:&#x2F;&#x2F;code.google.com&#x2F;p&#x2F;graphpack&#x2F;" rel="nofollow">https:&#x2F;&#x2F;code.google.com&#x2F;p&#x2F;graphpack&#x2F;</a> (future dev on <a href="https:&#x2F;&#x2F;github.com&#x2F;amitport&#x2F;graphpack" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;amitport&#x2F;graphpack</a>)<p>never had time to publish proper documentation though.<p>you should also check out the paper that was published a few years after:
<a href="http:&#x2F;&#x2F;onlinelibrary.wiley.com&#x2F;doi&#x2F;10.1002&#x2F;spe.2226&#x2F;abstract" rel="nofollow">http:&#x2F;&#x2F;onlinelibrary.wiley.com&#x2F;doi&#x2F;10.1002&#x2F;spe.2226&#x2F;abstract</a>