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

Load GraphML or GEXF file from S3 into AWS lambda

I have a graph stored as GraphML format in s3. I would like to load it into Lambda, to use it later with a Python library called networkx. I was trying to read it as instructed in the docs but it does not work because the path is not local but in s3…
G. Macia
  • 1,204
  • 3
  • 23
  • 38
0
votes
0 answers

How to output NetworkX.MultiDiGraph graph data as HTTP Response

I am developing a Python Flask REST API service which should return NetworkX.MultiDiGraph to REST API caller. I tried converting the Graph to JSON using networkx.node_link_data(). However I get error "TypeError: Object of type LineString is not JSON…
0
votes
0 answers

How to create graph in networkx from powerlines of european coutries and export a graph to graphml

I need to make a graph with powerlines of europe then save it as graphml so later i can open it with yED. I've succeded to save graph as png but i need to save it as graphml. Below i paste example with Malta. import osmnx as ox import networkx as…
Dawid
  • 1
0
votes
0 answers

Unable to write waxman graph using graphml in Networkx

I am trying to generate the Waxman random graph using the built-in function which works fine and generates the Waxman graph. Later in my code, I am writing the above-generated graph using graphml as: nx.write_graphml(my_graph_waxman,…
0
votes
1 answer

Write multiple iteration of a networkx graph into .graphml format

I created a graph using the following code where I am getting number of nodes and probability as input from the user. def my_erdos_renyi(): erdos_renyi_nodes = int(input("Please enter the number of nodes")) erdos_renyi_probability =…
0
votes
0 answers

Nodes sizes layout from networkx to cytoscape

So I'm building a graph with networkx and I want the size of the nodes to be a certain size according to a certain node attribute. I am trying to add this style setting in the graphml file so that Cytoscape can recognize it. That way you just have…
Beatriz
  • 1
  • 1
0
votes
1 answer

Load multiple graphml files into JanusGraph

I have 2 heavy graphml files (which is why I don't want to combine them if not absolutely necessary). Additionally, the nodes ids are coherent between the two files, and there is no reference to any node from the second file in the first one. Would…
GregoirePelegrin
  • 1,206
  • 2
  • 7
  • 23
0
votes
1 answer

How to create a GraphML repository report with Maven?

I want to create a GraphML repository report for all in-house made artifacts in my local Maven repository similar to the repreport target (ant/ivy). so far i found: create mega-pom which includes just all artefacts (600+) and run dependency:tree…
Michael Pralow
  • 6,560
  • 2
  • 30
  • 46
0
votes
1 answer

Gremlin: Read edge GraphML file and node GraphML file in separate queries

I have two files that I want to load by using g.io().read().iterate(): nodes.xml and edges.xml. The nodes.xml file contains the nodes of the graph I want to upload, and its contents are this:
asdf777
  • 15
  • 4
0
votes
0 answers

can you manually change the "node id" values in a graphml object created with igraph in R?

I primarily work in R, but am trying to switch over to python to use some of the new tools in the osmnx package and have become stuck on getting an .graphml file created by igraph in R to be read in properly by osmnx in python. tl;dr: the main…
0
votes
0 answers

Drawing a graph and extracting structure using R

For a production planning software I need a specificly structured Excel input. Therefore, I was looking for a way to make it easy for non-tech people to generate such an input. To achieve that, I thought it might be easiest for users to draw their…
Anne
  • 1
  • 1
0
votes
1 answer

networkx keyerror due to "long" format

I am getting an error: KeyError: 'long' when I run this code: import networkx as nx graph_input = open("final_graphml_train/myhead.txt", mode='rb') graph = nx.read_graphml(graph_input) The file looks like this:
shantanuo
  • 31,689
  • 78
  • 245
  • 403
0
votes
1 answer

ArangoDB 2 GraphML

Is there a way to export ArangoDB-Graphs to GraphML? I'm accessing the database using pyArango. arangoexport seems to focus on JSON(L) only.
Qohelet
  • 1,459
  • 4
  • 24
  • 41
0
votes
1 answer

How can I convert a @startuml code into a GraphML?

I have created a @startuml code that generates some class and sequence diagrams using PlantUML and it looks good but I would like to be able to edit the resulting graph using GraphML with the yed-live tool from yworks.com for example. How can I…
Corporativo
  • 185
  • 1
  • 2
  • 11
0
votes
0 answers

Traversing a graph of flowchart in python

I have a flow chart for implementing some rules in our product. Nodes consists of rules & decisions including start and end node in every flowchart. Using networkx package of python, I got graphml of flowchart. Now, I want to traverse a graph in…