Interesting parallels, though it's worth mentioning that Philostratus lived after Hegesippus.Hegesippus on James may possibly be paralleled in Philostratus Life of Apollonius book one.
I would suppose that these kinds of ascetic practices were fairly universal rather than there being any direct connection between what Philostratus says about Apollonius and what Hegesippus says about James.