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

How to convert GraphML to DOT format

I need to convert a GraphML file into a DOT format, but I am not familiar on how to perform the conversion.
Ed Mata
  • 35
  • 6
0
votes
1 answer

Iterating through graphml file to extracting the nodes values

I have thousands of grapgml files with each having data stored in the nodes. I want to iterate through each file and extract data from nodes and then store it as a CSV or JSON. Below is a small segment of the code. I want to extract values…
Raj Ratn
  • 109
  • 1
  • 5
0
votes
2 answers

Graphml to Sf object in R

I'm trying to convert the nodes of a graphml file to an sf object in R. It works until I create the sfc object. Once I've added the attributes, R is no longer able to plot or do any operation with it. library(igraph) library(sf) #read the graph gi…
Josep Pueyo
  • 387
  • 2
  • 11
0
votes
0 answers

HuggingFace Bert on Graph Data

I am trying to train a BERT model from scratch using this blog post: https://huggingface.co/blog/how-to-train I am trying to train my model on random walks from graph data. Essentially the nodes are the words and going from one node to the next…
0
votes
1 answer

XmlReader Value don't go through my If-Statement but it should

I have a .graphml Parser written and at one point I need to read out the Attribute Values from a specific tag. The Graphml file looks like this:
brstkr
  • 1,423
  • 3
  • 18
  • 28
0
votes
1 answer

Graph File Format that supports list as attributes

I'd like to store a graph to a file. Usually I would do that in GraphML. But my nodes have non-scalar properties (e.g. the property "hobby" of node "Alice" has the values ["swimming", "reading"]). As defined in the GraphML specification, properties…
manuels
  • 1,511
  • 3
  • 14
  • 26
0
votes
1 answer

how to create an adjacency matrix from a G(n,p) graph using python?

I am asking to create an adjacency matrix from a random graph. I really have no idea how to do it, the only way I knew was to build adjacency matrix through graph and vertex. def adjacency_matrix(n,p) The n is number of vertex and the p is the…
0
votes
2 answers

How to show Tree Layout using JUNG but with tidier spacing and structure

I am trying to lay out some nodes in a Tree Layout using JUNG but would like to lay them out in a tidy spacing, similar to - Tidy tree layout example I have downloaded the JUNG project from https://github.com/jrtom/jung and found examples of…
Matt R
  • 5
  • 2
0
votes
1 answer

How do I call networkx.add_node(..) with optional properties?

I'm looping through a dictionary of objects constructed from JSON, and I'm creating vertices from them using networkx. The problem I'm experiencing is that some of the JSON object have missing properties, and if I do…
devinbost
  • 4,658
  • 2
  • 44
  • 57
0
votes
1 answer

Jung weighted edges from graphml

I am using Jung 2.0. I have a graphml file with weighted edges. I am using a graphml reader to read the file and create the graph. When I visualize the graph with a FRLayout, I observe that the graph does not reflect the weights associated with the…
arelangi
  • 225
  • 1
  • 5
  • 9
0
votes
1 answer

boost read_graphml discards the nodes' id

I am trying to read a graphml file using the BGL library. I can successfully read the file and gathers the properties linked to each node. However the node entries in my graphml file also have a non trivial id I would like to retrieve. The best…
Anis
  • 2,984
  • 17
  • 21
0
votes
1 answer

Generate a GraphML via C#

I'm building a small software that is supposed to generate a graphml file in order to read using yEd afterwards. It is a software that builds graphs using nodes and edges. The typical 'node' is writtent as follows
0
votes
0 answers

joining spatial coordinates to existing igraph graph

I have two files: 1. A graph mL which has been constructed of a public transport network with nodes representing stops/stations and edges representing connections between nodes with a corresponding travel time. The nodes have an id to represent the…
0
votes
1 answer

Error when reading graphml file in r graph

I'm trying to read a graph ml file in r using the i graph package. The code I'm using is the following g<-read.graph("graph_bustuberail_london_500m",format=c("graphml")) #import gml I get the following error message Error in…
0
votes
1 answer

Export neo4j query to JSON, CSV or GraphML including nodes and relations

I need to export the result of a query of neo4j database to JSON or CSV, including relations and nodes, my query is this: MATCH …