Questions tagged [graph-tool]

Graph-tool is an efficient Python module for manipulation and statistical analysis of graphs (a.k.a. networks).

Graph-tool is an efficient Python module for manipulation and statistical analysis of graphs (a.k.a. networks). Contrary to most other Python modules with similar functionality, the core data structures and algorithms are implemented in C++, making extensive use of template metaprogramming, based heavily on the Boost Graph Library. This confers it a level of performance which is comparable (both in memory usage and computation time) to that of a pure C/C++ library.

Useful Links

283 questions
0
votes
1 answer

Python TypeError in graph_tool.find_vertex

I wrote a function which creates graph from list of edges (taken from database). I use graph-tool library. Python and this library are quite new for me. Every vertex in graph should be described, by pair of string and number. In function, if I…
Andrs37i
  • 1
  • 2
-1
votes
1 answer

Pickle / Save Virtual File in Python to Disk

I would like to pickle a virtual file within a dictionary. Specifically, I have a function G with a method save() that takes a file-obj or a string (filename) to save it's content to disk. But I would like to save it to a virtual file first, then…
Suuuehgi
  • 4,547
  • 3
  • 27
  • 32
-1
votes
1 answer

Get all possible graphs with a given number of nodes and edges (with graph-tools)

I am pretty new to graph and my knowledge is near to 0. But I need to build a model in order to get all possible graph with a given number of edges, given number of nodes and the maximum degree between each node. So for example i want to get all…
AnaAA
  • 3
  • 2
-1
votes
1 answer

Connecting subgraphs programmatically

I am looking for a graph theory package in Python or C++ that enables me to create edges between subgraphs/clusters and their nodes at will, as depicted in the accepted answer to this question, to assign properties to all those objects (the nodes,…
Eric Inclan
  • 327
  • 1
  • 5
  • 14
-1
votes
1 answer

graph-tool: How do I maintain an ordered set of vertices?

I am working on a network using graph-tool. Within the set of all vertices, there are specific groups of vertices with a well defined order that I would like to keep track of. Until now, I have been maintaining an external data structure with…
greedIsGoodAha
  • 103
  • 2
  • 8
-1
votes
2 answers

Graph-tool g.get_vertex() AttributeError

I'm getting an error on a script straight out of the user guide. What am I doing wrong? import graph_tool.all as gt print gt.__version__ g = gt.Graph() g.add_vertex(5) g.get_vertices() returns 2.20 (commit f6ef9990, Fri Jan 27 16:40:08 2017…
Tim
  • 171
  • 2
  • 12
-1
votes
1 answer

AttributeError on Inferences for graph_tools

I am using Python graph-tools library to make some inferences on a graph, and I was referencing the below link, which shows the API and some examples. https://graph-tool.skewed.de/static/doc/inference.html#graph_tool.inference.BlockState My code is…
-1
votes
1 answer

No "configure" available in Git version (1.13) of graph-tool

I have downloaded graph-tool v1.13 from Git (https://git.skewed.de/count0/graph-tool ). The INSTALL file instructs me to run ./configure in the source code's directory however the configure file does not exist. What do I need to do to install…
P-M
  • 1,279
  • 2
  • 21
  • 35
-1
votes
1 answer

NameError: name 'graph_draw' is not defined

After installing AUR package on arch-linux, it was an error during execution of simple piece of code. makepkg -sri PKGBUILD (to install package) because there was a strange error, trying to complie from source, so decide to use…
kAldown
  • 610
  • 2
  • 8
  • 27
-1
votes
2 answers

Questions on Graph-Tool

I am currently installing graph-tool-2.2. According to the description of installation, I first ran the Linux command line: ./configure and it successfully configured. Then when I typed: ./make it had already run for several hours, and seemed to…
Ruofan Kong
  • 1,060
  • 1
  • 17
  • 34
-2
votes
1 answer

How do I access Class fields in Python Graph-Tool property maps?

I'm trying to draw a graph with a class as a vertex property. How do I draw the graph with the vertex_text set to the name field of the classes they contain? from graph_tool.all import * class Node(object): def __init__(self, name, age): …
Francis
  • 137
  • 1
  • 10
-2
votes
1 answer

Python Graph Analysis tool Graph_tool did'nt have the method that in the documentation

I wanna perform the network analysis and visualization with a python library named graph_tool. I download and compile it from(https://graph-tool.skewed.de/), and there is no warnings and no errors. The version of the graph_tool is '2.2.44dev (commit…
RyanLi
  • 63
  • 8
-2
votes
4 answers

Finding function declarations in Ubuntu on Python

I have a vaguely defined function of a class Graph of a module I call gt (it is graph-tool). so i declare g = gt.graph() then want to use g.degree_property_map but do not know how. Therefore I want to see where in code g.degree_property_map or in…
Eiyrioü von Kauyf
  • 4,481
  • 7
  • 32
  • 41
1 2 3
18
19