Visualization of GraphML graph? [closed]
Asked Answered
B

2

10

What are the best options to visualize a graph defined in GraphML on Mac OSX or Linux ? R + iGraph seems to be a valid solution according to gremlin-users group but I'm wondering if there is any easier solution, ideally a simple "graphml2png" command line application. Any idea ?

Bryce answered 10/2, 2014 at 16:40 Comment(1)
GraphMl viewer for network visualization examplePortiaportico
T
11

I use yEd and it works on Linux, Windows and OSX. Plus it can export to several formats such as PDF, PNG, SVG, BMP, etc

Unfortunately, no command line support AFAIK

Thief answered 18/5, 2016 at 7:41 Comment(1)
Good! it seems a bit buggy as it will not show some things when we click on them, other times will show after a few retries. The main tip is to "focus node", at "neighborhood" or "predecessors" right click and "convert to document", that will let us zoom in to further analyze. thx!Outstretched
P
7

I don't have a complete recipe, but I can share my thoughts on it.

Since the graph can be visualized in a lot of ways, you should be able to manage its appearance somehow. Simply drawing nodes and edges without any pre-processing is not a good option - this approach will give you a random bunch of edges and nodes, especially on large graphs.

Here's an example algorithm to get a clean and visually attractive representation of a graph:

  1. Run some force-directed algorithm on the graph.
  2. Calculate graph modularity and color each node by its modularity class.
  3. Change size of each node based on its degree.
  4. If graph is too big, filter out nodes you're not interested in (probably nodes with low degree).
  5. Change edges thickness based on their weights.
  6. Add labels to nodes and edges.

You can do stuff like that with Gephi (in manual mode). They also offer a Gephi Toolkit that should be able to automate such things (unfortunately, I myself didn't try it yet). So I'd try to wrote simple console Java program that uses this toolkit.

Here's an example of a graph visualized with the algorithm above:

graph

Piled answered 6/4, 2014 at 14:3 Comment(2)
do we have any solution for web applications? I want to make an Angular App to visualize with either D3.js or Cytoscpae but all work with CSV or JSON, do you know any library that converts GraphML to JSON or CSV ?Lacuna
GraphMl viewer for network visualization examplePortiaportico

© 2022 - 2024 — McMap. All rights reserved.