gephi.team team mailing list archive
-
gephi.team team
-
Mailing list archive
-
Message #00217
Re: [Question #107276]: Continual Graph Update
Question #107276 on Gephi changed:
https://answers.launchpad.net/gephi/+question/107276
Mathieu Bastian posted a new comment:
Making a Generator is indeed the best way for the graph creation. And
for update, if you're looking for a way you have all the freedom you
want with the graph structure I advise you to just add a new menu item
in the Plugins menu. Follow these steps:
1) In Gephi source code, add a new Module. Add GraphAPI and UtilitiesAPi dependencies.
2) Right click on your module, select New and Action. Here we create an action MyAction that will do what we want. The Action will be set in the menubar.
3) Select "Always Enabled" action, In the Global Menu option, select "Plugins" and put "MyAction" as a Display Name.
4) Now run Gephi and you see a new menu is accessible from Plugins menubar.
5) Now go to your class and put code in "actionPerformed()" method.
>From there, to access current graph just do:
GraphController gc = Lookup.getDefault().lookup(GraphController.class);
Graph currentGraph = gc.getModel().getGraph();
--
You received this question notification because you are a member of
Gephi Team, which is an answer contact for Gephi.