gephi.team team mailing list archive
-
gephi.team team
-
Mailing list archive
-
Message #00535
Re: [Question #121917]: How does ExportController know what to export?
Question #121917 on Gephi changed:
https://answers.launchpad.net/gephi/+question/121917
Status: Open => Answered
Mathieu Bastian proposed the following answer:
Yes that is good question about Lookup. The data about graphs in Gephi
are principally stored in two modules: GraphAPI and AttributesAPI. Each
of this module has a singleton controller, a service in a word that can
be found by other modules through Lookup.
When doing
GraphController gc = Lookup.getDefault().lookup(GraphController.class);
I get the singleton GraphController in the system. Then from this
controller I can get the graph data for the current workspace:
GraphModel graphModel = gc.getModel();
Graph graph = graphModel.getGraph();
That is what the export method do internally.
--
You received this question notification because you are a member of
Gephi Team, which is an answer contact for Gephi.