Questions tagged [graphml]

File-format for graphs which consists of a language core to describe the structural properties of a graph and a flexible extension mechanism to add application-specific data

GraphML is a comprehensive and easy-to-use file format for graphs. It consists of a language core to describe the structural properties of a graph and a flexible extension mechanism to add application-specific data. Its main features include support of:

  • directed, undirected, and mixed graphs,
  • hypergraphs,
  • hierarchical graphs,
  • graphical representations,
  • references to external data,
  • application-specific attribute data, and
  • light-weight parsers.

Official Home

GraphML:Wikipedia

209 questions
22
votes
4 answers

Best/more standard graph representation file format? (GraphSON, Gexf, GraphML? )

What's the standard graph representation file format or otherwise the most used one? I would say one of these three: GraphSON GEXF GraphML but it would be great if anyone could point out the advantages/weaknesses from each of them.
ppareja
  • 730
  • 1
  • 5
  • 16
21
votes
2 answers

View graphml file

I recently found a .graphml file but have no idea how to open it from command line. Do I need to install something to view such files in ubuntu from command line? I tried google but could not find any result related to this topic.
brokendreams
  • 827
  • 2
  • 10
  • 29
11
votes
2 answers

Processing yEd graphml file in python

I want to get a list of all nodes and some attributes (e.g. label name) in a yEd created graphml file regardless of where they are located in the graph. This has been partially dealt with already (Processing XML file with networkx in python and How…
belvoir
  • 335
  • 4
  • 9
11
votes
3 answers

What is the most standard file format and notation for persisting expressive directed graphs?

I am interested in persisting individual directed graphs. This question is not asking for a full-scale graph database solution, but for a document format that I can use to save and individual arbitrary directed graph. I don't know what notation…
smartcaveman
  • 41,281
  • 29
  • 127
  • 212
10
votes
2 answers

Visualization of GraphML graph?

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"…
Jerome Serrano
  • 1,835
  • 2
  • 16
  • 27
9
votes
2 answers

Graphml javascript library to draw in web page

I have a GraphML file, I have to display it on a webpage as well as change the display properties using JavaScript (like changing the color of the node, edge etc). Is it possible? Please let me know, if there is any JavaScript library to load, parse…
sokid
  • 813
  • 3
  • 10
  • 16
8
votes
1 answer

Exporting Layout Positions for a Graph Using NetworkX

After generating x/y layout coordinates for a graph in NetworkX, how do I export the graph, along with node positions, as part of the node definition using something like GraphML? The layout algorithms don't seem to annotate the graph directly? Or…
psychemedia
  • 5,690
  • 7
  • 52
  • 84
8
votes
1 answer

NetworkX Key Error when writing GML file

I am getting the following error message when attempting to write GML file after merging two graphs using compose(): NetworkXError: 'user_id' is not a valid key The background is that I import two GML files using: g = nx.read_gml(file_path +…
Watty62
  • 602
  • 1
  • 5
  • 21
7
votes
1 answer

Converting GraphML to GV or Dot file

How can I draw a graph in graphviz using "graphml" file as an input. I know graphviz comes with graphml2gv for this purpose but when I try to run this command from command prompt I get this message cvtgxl: not configured for conversion from GXL to…
Sushil
  • 1,188
  • 12
  • 19
7
votes
6 answers

How to generate a graphml file in Java. Gephi, JGraph, Prefuse, etc

Help! I'm looking to create a Java application that generates a graph in any one of these formats: .graphml .ygf .gml .tgf I need to be able to open the file in the graph editor "yEd". So far, I have found these solutions: yFiles For Java Pro:…
Katie
  • 45,622
  • 19
  • 93
  • 125
7
votes
4 answers

using a graphml file for d3.js force-directed layout

How do I use a graphml file with d3.js ? [i would like to draw a force-directed graph] is it simpler to convert the file to .json ? How ? I haven't been able to find a converter (I have found a python converter, but I'm not a python user) is it…
user1788720
  • 327
  • 2
  • 11
6
votes
2 answers

Gephi API example

Can somebody give me an example of how to display programmatically a graph with Gephi from a .graphml file? Thanks.
user436390
  • 269
  • 1
  • 4
  • 6
6
votes
0 answers

Read a graphML file created by yEd into R

I have this graphML file, which was created with yworks yEd. Now I want to read this file into R to plot it via visNetwork. But reading the file into R using the igraph::read_graph function fails: library(igraph) example <-…
needRhelp
  • 2,948
  • 2
  • 24
  • 48
5
votes
1 answer

Reading GraphML in Haskell

I'm trying to read a GraphML file containing a single directed Graph into a Haskell Data.Graph in order to run an analysis using the Math.Combinatorics.Graph module. However, I can't find any module that allows me to read a GraphML file, producing a…
Uli Köhler
  • 13,012
  • 16
  • 70
  • 120
4
votes
1 answer

Why is the Girvan-Newman algorithm in NetworkX so slow

I have approx. 4000 nodes and 6000 edges in my graphml file and having no problem in transforming it into digraph format of networkx. However, when I tried to run girvan_newman() from networkx, it looks like it freezes because I have run the script…
wowzaaa
  • 141
  • 2
  • 12
1
2 3
13 14