You should be able to do it through GraphEdtorModule, see
How do I make a plugin to add to the "Node Actions" list? - #3 by zosiu for an example.
You should be able to do it through GraphEdtorModule, see
How do I make a plugin to add to the "Node Actions" list? - #3 by zosiu for an example.