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

Adjust XML output in GraphML

Do you think I can adjust the xml output from GraphML? In the GraphML wiki the tags seem to be fixed: I saw that you…
myborobudur
  • 4,385
  • 8
  • 40
  • 61
2
votes
1 answer

How to iterate over GraphML file with lxml

I have the following GraphML file 'mygraph.gml' that I want to parse with a simple python script: This represents a simple graph with 2 nodes "node0", "node1" and an edge between them
linello
  • 8,451
  • 18
  • 63
  • 109
1
vote
2 answers

Graphml parse error

I tried to create a graphml file using python and igraph library. I can construct igraph's graph object and wrote it to a file using: g.write_graphml("mygraph.graphml") Everything seems to be successful but when I tried to read the file back to…
Nama Keru
  • 911
  • 1
  • 7
  • 10
1
vote
2 answers

How to process XML files using Graph::easy module in Perl

I want to convert an XML file to graphML using the Perl module Graph::easy. I reeded Graph::module then I tried some examples how to add node and how to add edge like that and I generated graphML file using Graph::Easy. For…
biji
  • 59
  • 7
1
vote
1 answer

Why does NetLogo not show 'x' values when using nw:load-graphml with a different breed?

I'm working on a NetLogo project where I'm using the nw:load-graphml function from the NW extension to load data from a GraphML file into my NetLogo model. When I use nw:set-context turtles routes and then call nw:load-graphml "orbis.graphml", my…
cconsta1
  • 737
  • 1
  • 6
  • 20
1
vote
1 answer

How to write GraphML file to Boost Graph with custom graph_bundle Property?

I am not able to compile below , where I want to use graph_bundle property of boost graph. struct VertexProps { std::string VertexName; }; struct EdgeProps { std::string edgeName; }; struct GraphProps { std::string…
1
vote
1 answer

How to export DAG in .gml format from Dagitty and input into dowhy?

I have just started exploring dowhy library for causal inference. In the user guide section there is a basic example to calculate the causal effect. A section here says that it is recommended to input the causal graph in GML graph format. The causal…
Anirban Chakraborty
  • 539
  • 1
  • 5
  • 15
1
vote
1 answer

How to interpret complex strings as graph properties when reading a graphML file using `boost::read_graphml`?

I have a graph type where each Vertex carries a std::vector as a property. struct VertexProperties { std::vector numbers; }; using Graph = boost::adjacency_list< boost::vecS, boost::vecS, boost::undirectedS, VertexProperties>; I…
Quappas
  • 79
  • 7
1
vote
1 answer

Problem with linking against libexpat in Boost Build - for building graphml

On my system, expat is located at /usr/include/expat.h /usr/include/expat_external.h /usr/lib/libexpat.1.5.0.dylib /usr/lib/libexpat.1.dylib /usr/lib/libexpat.dylib /usr/lib/libexpat.la So I export the required variables for boost to build graphml…
bias
  • 1,467
  • 3
  • 19
  • 39
1
vote
1 answer

What data types can be exported as attributes when exporting to `graphml` with `networkx`?

I have a networkx graph with some list and dict attributes that the function nx.write_graphml doesn't accept as valid type for the export. I couldn't find a function that would automatically ignore those attributes so I decided to create one…
ajreckof
  • 70
  • 5
1
vote
0 answers

Set node size by attribute in Gephi

I'm generating graphs for Gephi in igraph and I used to be able to set the node size as an attribute in igraph and then it would appear as an attribute in Gephi and I could use that attribute to set the size of the node in Gephi. The graphml I'm…
otter77
  • 55
  • 5
1
vote
0 answers

Why is networkx's girvan newman algorithm only returning 2 communities?

I am using the networkx library, more specifically the girvan_newman algorithm from nextworkx.algorithms.community.centrality on a data set of about 1200 vertices each with 1-10 edges between them. When I run the below code I only see two…
John Smith
  • 291
  • 2
  • 12
1
vote
0 answers

Is GraphML compatible with GXL, GML, XGMML or SVG?

The website http://graphml.graphdrawing.org/ lists the file formats GXL, GML, XGMML or SVG. All of them, including graphML are considered to be "standards". Unfortunately there is not really a huge amount of information listed on how they play…
Qohelet
  • 1,459
  • 4
  • 24
  • 41
1
vote
0 answers

NetworkX seems to drop information in the graphml element declaration -- is there a way to recover that?

Suppose a graphml file has nodes defined: # foo.graphml
Chris
  • 28,822
  • 27
  • 83
  • 158
1
vote
1 answer

Is there a way to get the GraphML representation of a graph from gremlinpython

I am using Janusgraph in a remote server to which I connect with a python remote client via from gremlin_python import statics from gremlin_python.structure.graph import Graph from gremlin_python.process.graph_traversal import __ from…
cabo
  • 127
  • 1
  • 9