gephi / gephi/gephi

Repeated simulation of the same graph

Open
#1,770 2 comments 0 reactions 0 assignees View on GitHub
Wishlist
Dominant language
Java
Stars
6.6k
Forks
1.6k
Avg merge
9h 38m
Merged PRs (30d)
75

Description

Here is what I am trying to do :
I need for research to simulate the same Gephi graph 100 times, for 20 different graphs.
The reason for this is that the layouts are somewhat random themselves and I want to factor for that.

I have python code that automatically simulates each (of the 100) copies of a graph and saves a photograph.

The problem is, that once a layout is run on a gephi graph, it already is spread out by the way the layout made it and cannot be randomly simulated again. So I still have to open each copy of each graph separately, in order to have a fresh layout simulation.

I was trying to automate this.

Two possible ways of solving this would be
1) Being able to reset the graph to be exactly like it was before I ever run any layout on it. Meaning, after running a layout, I want to be able to reset the graph so it looks as if I just imported the node and edge file. This would be useful in general, not only for this case I think. If there is a way to do this that I missed I would be glad if you point it out.

2) Being able to write to the Gephi console from the cmd. I can open Gephi files from there, and if I could write to the console of these files, then it would be a way to automate the process of opening all of them. The question is if it is possible to generally access the console in Gephi from cmd and execute commands in that way? (I know there is a streaming plugin but from what I understand it has to be set up separately in the console for each file..)

I hope this was clear..
Thank you (:
Daphna

P.S. I tried to clarify the request I wrote yesterday in the comments.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.