Unfortunately, yEd does not provide a plugin framework. Therefore, it is currently not possible to incorporate custom features/functions into yEd.
The best you can do is storing your graph as GraphML, then opening said GraphML in your own program and running your functions.