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
3
votes
1 answer

Can I load .gml in d3?

I saved a .gml from wolfram mathimatica, does anyone have an example of how to load the file and display on a webpage? I am dealing with d3 at the moment, would another language be more appropriate? Thanks.
JSNoob
  • 71
  • 1
  • 2
  • 9
3
votes
0 answers

Exporting twitter data to Gephi using R

I have compiled a dataset consisting of thousands of tweets using R. The dataset basically looks like this: Data <- data.frame( X = c(1,2), text = c("Hello @User1 #hashtag1, hello @User2 and @User3, #hashtag2", "Hello @User2 #hashtag3, hello…
feder80
  • 1,195
  • 3
  • 13
  • 34
3
votes
1 answer

igraph plot graph with vertex size dependent on betweenness centrality

I would like the size of the nodes in the graph to be dependent on the calculated betweenness centrality of the vertices. How can this be done? My current code is below: require(igraph) g <- read.graph("data.graphml", "graphml") plot(g,vertex.size =…
snapout
  • 55
  • 1
  • 3
3
votes
3 answers

How to load my data into a GraphML file for easy use in Prefuse?

I'm trying to generate some graphs with prefuse, and it seems like the easiest way to load the data into prefuse is to use a GraphML file. Is there an easy way to write these files from my data? Or is there an easier way to load my data into…
thedude19
  • 2,643
  • 5
  • 34
  • 43
3
votes
1 answer

Writing GraphML with XOM?

I'm trying to write out a graphML document with XOM in java, but I can't figure out how to get all of the namespace declarations correct. To have valid graphML, I need to have a root element that looks like the following:
Paul Wicks
  • 62,960
  • 55
  • 119
  • 146
2
votes
1 answer

Load very large file in prefuse

I have a huge XML file (measuring nearly 2GB) formatted in the Graphml XML format for a social graph. While creating a new graph via graph = new GraphMLReader().readGraph("socialgraph.xml"); I get a "java.lang.OutOfMemoryError: Java heap…
kitwalker
  • 862
  • 1
  • 10
  • 29
2
votes
1 answer

Prefuse : Adding edge weights to the GraphView Demo

I am using the prefuse visualization toolkit, The GraphView Demo in the toolkit is amazing providing a variety of controls to visualize the data. I am able to generate GraphML for my dataset and visualize it using GraphView, One additional thing…
learner
  • 885
  • 3
  • 14
  • 28
2
votes
1 answer

How to read GraphML file to Boost Graph with custom Vertex Property?

I am trying to create a boost graph of robot joint configuration space. For that I am using custom VertexProperty. struct VertexProperties { std::vector joint_angles; VertexProperties() : joint_angles(3){} }; I have saved…
2
votes
1 answer

Easiest format to use to dump a graph for yEd

I'm currently trying to dump a graph within java for yEd. I've been trying to use graphml for the format, but I've found it to be very cumbersome. Particularly, the size of the nodes will not resize for the size of the label, so most of the time the…
Xzhsh
  • 2,239
  • 2
  • 22
  • 32
2
votes
1 answer

Not able to read graphML using boost::read_graphml

I am using boost version 1.64 and trying to read a graphml file using boost::read_graphml.. The code compiles but throws an exception when run: terminate called after throwing an instance of 'boost::exception_detail::clone_impl >' what(): parse…
Nishant Sharma
  • 341
  • 2
  • 5
  • 17
2
votes
1 answer

Import multigraph into Gephi from GML format

I use NetworkX to create a set of nodes and edges and export them into GML format so that I can view them on Gephi 0.9.1 version. When I import the following GML: graph [ multigraph 1 directed 0 node [ id 0 label 1 ] node [ id…
twfx
  • 1,664
  • 9
  • 29
  • 56
2
votes
1 answer

XSLT stylesheet to convert Graphml to SVG

I am having more trouble than expected to find an XSLT stylesheet that converts a simple Graphml document to an SVG diagram. I've searched quite widely, and so far I have only partial success. Here's my input Graphml file:
user304582
  • 1,910
  • 5
  • 28
  • 49
2
votes
1 answer

Import NetworkX generated GraphML data to Gephi

I am trying to import the data from a graphml file into Gephi but the attributes are not loaded properly. An example of this problem (with only one node and no edges):
Valerian
  • 425
  • 1
  • 7
  • 17
2
votes
0 answers

Pickle file to graphML

I am trying to visualise large graphs in Gephi and am unsure which format is best to save my graph as. At the moment I am simply creating a pickle file as with open('stochastic.pickle', 'rb') as handle: sto = pickle.load(handle) However, this…
AngusTheMan
  • 564
  • 1
  • 6
  • 15
2
votes
0 answers

Unable to Serialise Graph with base class and derived class properties using GraphMLExtensions

I have a custom implementation of Graph using Quick graph(NuGet Package). When I'm trying to Serialise this graph object using GraphMLExtensions, I'm able to Serialise only base class propeties but not both base class & derived class. Please help me…
1 2
3
13 14