I have also looked around for, but have not yet found, any code to do this. There has been some work done towards using the box-counting method to analyze the fractal dimension of a road network; see the links below.
Here are some related discussions and papers that you may find of interest:
It might be somewhat easier to work up (in ArcMap) a geoprocessing model to use the box-counting method, than it would be to attempt the same using the ArcGIS API for JavaScript. I may tinker around with this idea in my spare time, but I make no promises. 🙂
Hi all, I came across this post and was wondering how you resolved it. I have similar concerns. JasonHine, could you please cite the references you shared? The links are not working. Thanks