-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add JSON Exporter #2674
Comments
There is the vosviewer json file format. Not the most universal, adding it here for completeness: |
* Initial implementation, work in progress * Add tests and UI * Minor tweaks * Do not export undirected for each edge when undirected * Formatting * Fix color and options
Regarding position, do you avoid Out of curiosity, how did you choose to handle:
|
Yes, I don't export Z if irrelevant. GEXF export in Gephi does the same. Maybe some other exporters are still exporting Z.
Good point. It could be a problem for the edge type column as in Gephi that column is called "kind". I guess we should ignore those columns and throw a warning. I'll change that.
If the "Dynamics" checkbox is checked we serialize to string the dynamic attributes. For instance |
Gephi doesn't support JSON as an import/export format. We should try to fill that gap. For now, only focus on Export.
Now the essential question, is which format do we want to export to. There a few options and ultimately I think we should support all of them, or at least more than one to cover the most ground possible:
Proposed solution
Stick to the Graphology format as the first option.
Use the JSON Exporter plugin as inspiration and improve it. This was based on Sigma.js parser originally and written by @computermacgyver.
Alternatives considered
JSONLines/ndjson could also be an option, in combination with any of the format. Essentially representing the graph as a stream of nodes/edges. This wouldn't allow for graph-level configurations.
Additional context
If you're aware of any other relevant JSON graph format, let me know.
FYI @jacomyal @Yomguithereal @jacomyma
The text was updated successfully, but these errors were encountered: