Questions tagged [graph-modelling-language]

Graph Modelling Language is a hierarchical text-based format for modelling graphs, by describing nodes and edges (defined by the source and target nodes at each end).

Graph Modelling Language is a hierarchical text-based format for modelling graphs, by describing nodes and edges (defined by the source and target nodes at each end). The Graph Modelling Language wikipedia page gives a number of software applications which will parse it.

21 questions
10
votes
1 answer

Python igraph: delete vertices from a graph

I am working with enron email dataset and I am trying to remove email addresses that don't have "@enron.com" (i.e. I would like to have enron emails only). When I tried to delete those addresses without @enron.com, some emails just got skipped for…
user1894963
  • 635
  • 3
  • 11
  • 18
4
votes
1 answer

How to convert csv file containing network data into GML

I have a dataset containing network data of email conversations consisting of two columns representing the connections between agents. The dataset can be accessed from here Since I'm using igraph in R I would like to convert this file to GML…
user1723765
  • 6,179
  • 18
  • 57
  • 85
3
votes
2 answers

Networkx - allow duplicate node labels?

I want to be able to have a lot of nodes have the same label— in my particular case, each node represents a news article, and they should be labelled with their news category. Ultimately, what I really want is a GML file with these labels. Here's a…
3
votes
1 answer

reading a GML file with networkx (python) without labels for the nodes

I have a long GML file (Graph Modelling Language) that i am trying to read with Networkx in Python. In the GML file, nodes don't have label, like this: graph [ node [ id 1 ] node [ id 2 ] edge [ source 2 target 1 ] …
Chachni
  • 427
  • 4
  • 11
3
votes
2 answers

Convert GML file to adjacency matrix in matlab

I have a GML file of a directed graph (Political blogs). I want to use this graph in Matlab as an adjacency matrix. How can I convert it? Thanks.
Fatime
  • 197
  • 1
  • 5
  • 15
3
votes
1 answer

Extracting data from a GML file

I have a GML(Graph (not Graffiti) Modeling Language) file from which I want to create a mapping of IDs to labels. I am at a loss as to how I can do this since my list manipulations do not seem to work. I tried using the example which specifies how…
adwaraki
  • 342
  • 1
  • 5
  • 14
2
votes
1 answer

Neo4j (or any graph db) should I model every relationship even if relationship can be determined via graph

I have just started looking into Neo4J to track in house developed applications that use SQL Server to what tables and columns those applications use. [Background] We are currently re-architecting a few of our Monolithic applications into…
Chris
  • 143
  • 1
  • 6
2
votes
2 answers

Read gml file in R

i have problem when i try to read a gml file of political books dataset. i use the command: hh=read.table("polbooks.gml") Erreur dans scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : la ligne 2 n'avait pas 2 éléments and…
Sasa88
  • 327
  • 1
  • 3
  • 15
2
votes
1 answer

How to use GML files in Lemon?

I have a lot of topologies in GML format and want to process them with Lemon (http://lemon.cs.elte.hu/trac/lemon), but it doesn't support GML files. Is there a library?
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

How to model 'sort order' in a GraphDb (neo4j) with multiple relationships?

I'm trying to model the following relationships between entities of type Product, Item and Part. A product consists of one Item and the item itself contains two or more parts. In my domain the sort order of the parts matter per product. So I need…
1
vote
1 answer

How to change the id value of a node in a GML file

How do I create a new node in a nxGraph with either a custom ID, or relabel the ID? The property I'm trying to change is that id label that's set to '0': graph [ node [ id 0 label "Category:Class-based_Programming_Languages" ] I've…
Min Park
  • 81
  • 6
1
vote
1 answer

Self-referential nodes in neo4j

Is it ok if we create self-referential nodes in neo4j? I need to use it in a big data environment so the performance really matters. I found an example here but need to know more opinions about this. Generally which one is better ? to use self…
Lina
  • 1,217
  • 1
  • 15
  • 28
1
vote
0 answers

Probablistic graphical model Error while fitting the model

I am trying to fit a sample probablistic graphical model using sample data. While fitting the data in model, I am encountering type error. Sample code is given below: import numpy as np import pandas as pd from pgmpy.models import…
Pranav Waila
  • 418
  • 4
  • 19
1
vote
1 answer

Is there intractive GUI for igraph?

Is there a way to use igraph other than from command line in ubuntu? (i mean a GUI for using it).My intention is to add weight to edges in a .gml file
Jose Kj
  • 2,912
  • 2
  • 28
  • 40
1
2