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
211
questions
-1
votes
0
answers
29
views
Problems generating valid Graphml with osmnx
I want to generate a valid graph format with osmnx so that it can be later analyzed with igraph or similar. This is the minimal code:
import osmnx as ox
def __main__():
# Define the place name
...
0
votes
1
answer
108
views
Turning a list of PyG Data objects into a PyG Dataset?
I have a python list of torch_geometric.data.Data objects (each one representing a graph). There is no easy way for me to access original raw files for this data: I just have the list. I need to turn ...
1
vote
1
answer
38
views
Difficulty with read_graphml function from the Boost Graph library
I am trying to use the read_graphml function from the Boost library to read some .graphml files in a C++ application that I am developing. However, I am running into unexpected difficulties in reading ...
0
votes
0
answers
28
views
Error in DGL API with heterogeneous graphs
According to this page (https://docs.dgl.ai/en/0.9.x/generated/dgl.DGLGraph.nodes.html)
This code snippet
g = dgl.graph((torch.tensor([0, 1]), torch.tensor([1, 2])))
hg = dgl.heterograph({
('user',...
0
votes
1
answer
106
views
Identical code works in .ipynb but fails in .py
Using the OSMnx package, I am attempting to write a script which involves loading a .osm file. The .osm file was downloaded from Geofabrik.
When building, I prefer using .ipynb on VS code, but I am ...
0
votes
1
answer
27
views
Can't read and query graphml file with lxml
I have an XML (GraphML) file which is loosely defined as follows:
<?xml version="1.0" encoding="utf-8"?>
<graphml xmlns:x="http://www.yworks.com/xml/yfiles-common/...
-1
votes
1
answer
53
views
How to neo4j to Tigergraph (file is in graphml format)
i'm trying to migrate the schema from neo4j to tigergraph where i exported the data from neo4j in graphml format and trying to parse the file and create schema in tigergraph.
Do let me know if there ...
0
votes
0
answers
48
views
I am playing around with DGL. In this specific case, I have a heterogenous graph, but the output of the RGCN is not what I expect
This is what my graph looks like:
cust_prod_graph = Graph(num_nodes={'customer': 8813, 'product': 157466},
num_edges={('customer', 'browsed', 'product'): 860771, ('customer', 'purchased', '...
1
vote
1
answer
41
views
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 ...
0
votes
1
answer
85
views
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 ...
1
vote
1
answer
100
views
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 ...
1
vote
1
answer
422
views
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 ...
0
votes
0
answers
73
views
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:
...
0
votes
1
answer
97
views
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 ...
2
votes
1
answer
149
views
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<double> joint_angles;
...