This looks really similar to what you want to do but with d3 and interactive: http://maurizzzio.github.io/greuler/#/examples/dfs (click "run algorithm")
I have usually dismissed JavaScript fails on iPhones as one of those things, but it is hard to argue with the idea that the mobile world is now the predominant platform?
If you have a specific issue, can I please ask you to report it on GitHub Issues?
Thanks!