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
1
vote
1 answer

Add children to existing node using R XML

I have the following XML file test.graphml that I am trying to manipulate using the XML package in R.
nandu
  • 2,563
  • 2
  • 16
  • 14
1
vote
2 answers

XSLT - cant copy elements only once in complexed graph representation

I have XML data (GraphML) i need to transform for my application. The XML represents a graph, that has nodes of labels "User" and "Item", and edges of label "HAS_HOBBY" and "FRIEND_OF". Given a specific user, I want to get after the transform all…
Zephyer
  • 333
  • 6
  • 16
1
vote
1 answer

XSLT - Copying only desired elements from GraphML to another GraphML

I've been trying to extract to a new GraphML file just the node elements that their label is ":User". For example, i have this partial graphml:
Zephyer
  • 333
  • 6
  • 16
1
vote
1 answer

Unable to read graphml file generated by networkx in yED

I am generating a graphml file via python based on network analysis. This is working fine. The problem is that I am unable to read it using yED or cytoscape. Here is the error that I am observing in yED. java.io.IOException at…
Chetan R
  • 13
  • 2
1
vote
0 answers

How to use Neo4j Database with Gephi API

I'm using Neo4j API and Gephi API in Eclipse Java, and i want to import my Neo4j Database into Gephi, i'm using this part of code //Import file String URL = "/res/test.graphdb"; Container container; try { File file = new…
Jon.Snow
  • 33
  • 4
1
vote
2 answers

Import Graphml file into neo4j using Python and export it to CSV

I have a lot of graphml files and I'm trying to create separate neo4j database using each file. Right now I'm using Gephi to export graphml to neo4j database but that it would take me to much time for so many files. I've found this import-graphml…
sstevan
  • 477
  • 2
  • 9
  • 25
1
vote
2 answers

Neo4j to OrientDB: import database graphml is not importing the properties of nodes and relationships

I followed the documentation to migrate the data from Neo4j to OrientDB out.graphml file has the label,type and property information. Snippet from the file below.
mamta
  • 35
  • 1
  • 7
1
vote
1 answer

Export graph to graphml with node positions using NetworkX

I'm using NetworkX 1.9.1. I have a graph that I need to organize with positions and I then export to graphml format. I've tried code in this question. It does not work, here is my example import networkx as nx import matplotlib.pyplot as plt G =…
Agostino
  • 2,723
  • 9
  • 48
  • 65
1
vote
2 answers

How to import a GraphML to JGraphT

JGraphT has a GraphMLExporter that enables to export a graph to a GraphML file. There doesn't seem to be a GraphMLImporter. Is there a simple way to generate a graph in JGraphT from a .grphml file?
OOP
  • 293
  • 4
  • 16
1
vote
1 answer

Simple projection of bipartite (two-mode) graph not working in igraph 0.7.1

Consider this simple, bipartite graph in GraphML:
Mischa
  • 623
  • 5
  • 17
1
vote
1 answer

working with large graphml files in networkX

I have some fairly large .graphml files (~7GB) and I would like to run some algorithms on these files using NetworkX. Whenever I try to read these graphml files with: print "Reading in the Data...\n" G = nx.read_graphml('%s' %…
user3708902
  • 161
  • 1
  • 2
  • 12
1
vote
1 answer

Cannot Write Graph with attributes in graphml format in networkx

I am trying to export my directed graph into graphml format in networkx. here is the graph code in networkx and the error i am getting: h = nx.path_graph(5) G.add_nodes_from(h) G.add_edges_from(h.edges() G[0]['name']="panama" G[1]['name']="costa…
Soumya
  • 87
  • 1
  • 2
  • 15
1
vote
1 answer

graphml or dotml how to

For an assignment we have been told, for additional functionality output a graph, possible using GraphViz. That is all the info we have been given. The assignment is perl outputting XML. I am pretty sure that I can ouput the code, I just need to…
Keryn Drake
  • 121
  • 2
  • 10
1
vote
1 answer

Importing GraphML files in JUNG

I am new to JUNG, can any one show me how to import a GraphML to JUNG.
Ali
  • 617
  • 10
  • 25
1
vote
1 answer

XSLT: How to find source and target Xpath for the edge?

I want to write an xslt file to transfer an xmi file in a graphical file. But I meet the problem that the edge can not connect the right source node and target node. I have tried already two weeks. But I am still confused. Please help me. Thanks a…
Kathi
  • 25
  • 4