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, Generating Random Graphs with Graph-tool

So I'm trying to generate a random directed graph such that each vertex has 3 in-nodes and 1 outnode. But graph tool seems to be getting stuck in the deg_sampler() function. from graph_tool.all import * def deg_sampler(): return 1,2 g =…
0
votes
0 answers

Installing graph-tool into Enthought Canopy (OS X 10.10)?

I am trying to install graph-tool into Enthought Canopy. Has anyone had success doing so? If so, can you provide your steps?
0
votes
1 answer

graph-tool - AttributeError: 'PropertyDict' object has no attribute 'species'

I have the following code to annotate a graph using property maps: from graph_tool.all import * # define graph g = Graph() g.set_directed(True) species = g.new_vertex_property("string") species_dict = {} reaction_dict = {} #add species and…
P-M
  • 1,279
  • 2
  • 21
  • 35
0
votes
2 answers

Graph-tool edge_property to string

I've got a graph with edge weights. I looked around and found that I can use edge_properties to represent an edge weight. I do it like this: edge_weight = g.new_edge_property("double") for i in range(10): e = g.add_edge(i, i+1) …
Bence Gedai
  • 1,461
  • 2
  • 13
  • 25
0
votes
1 answer

graph-tool import causing attempt to open socket?

I'm running graph-tool on Debian Jessie amd64. This server does not have X installed, nor do I wish to install it. Whenever I attempt to import * (per the quick start documentation), the following happens: Python 2.7.9 (default, Mar 1 2015,…
John Jensen
  • 422
  • 4
  • 20
0
votes
1 answer

How to disable OpenMP support in graph-tool

I want to disable OpenMP in graph-tool, but I can't find anything about OpenMP in graph-tool's official documentation. Is there any way to turn it off?
Douglas Su
  • 3,214
  • 7
  • 29
  • 58
0
votes
2 answers

graph-tool crahes on import

Using Python 2.7 I try to import graph-tool: from graph_tool.all import * Each time I execute the above command the following error is returned and Python crashes. dyld: lazy symbol binding failed: Symbol not found: …
MaxPowers
  • 5,235
  • 2
  • 44
  • 69
0
votes
1 answer

Can't change the size of the drawing canvas while using graph-tool 2.2.44

I'm trying to use Graph-Tool 2.2.44 on a Mac to visualize some networks with its function graph_tool.draw.graph_draw() in the following way: gt.graph_draw(g, pos=pos, output_size=(1200, 1200)) The visualization window will show up. However, no…
Ioyao Li
  • 3
  • 1
0
votes
1 answer

Graph-Tool GraphView Object

I have a filtered graph generated using graph-tool's GraphView(). g = gt.GraphView(g, vfilt= label_largest_component(g, directed=False)) The original graph g has 10,069 vertices while the resulting graph has 9,197. However, using the new (filtered)…
EFL
  • 938
  • 4
  • 11
  • 23
0
votes
1 answer

graph-tool fit_view and output size

Here is basic script I use for drawing: from graph_tool.all import * g = load_graph("data.graphml") g.set_directed(False) pos = sfdp_layout(g) graph_draw(g, pos=pos, output_size=(5000, 5000), vertex_text=g.vertex_index,…
John Tracid
  • 3,836
  • 3
  • 22
  • 33
0
votes
1 answer

graph-tool similar package for windows

I have been trying to run a code I got from stackoverflow which contains a function called "get_degrees_dic". I figured this function is from graph-tool package. Since I am doing my project in Windows and graph-tool is not suitable for it, I was…
user3403882
0
votes
1 answer

pin vertecies in graph-tool figures

How can I generate a series of images of an evolving graph where the vertices do not move between images? Their positions are supposed to be fixed, and it really messes up the animation when they jitter around. I'm using the python graph-tool…
Ian
  • 1,062
  • 1
  • 9
  • 21
0
votes
1 answer

python graph-tool cuts off edges

graph-tool for python is cutting off my edges, and I can't seem to fix it, no matter how much I hack... help! Changing the output size does nothing. Also, my edge text looks like crud. Any suggestions? graph_draw(g, vertex_shape = vs,…
Him
  • 5,257
  • 3
  • 26
  • 83
0
votes
1 answer

Linker trouble with MacPorts installation of graph-tool

I've installed graph-tool via Mac Ports. Some days ago, I ran $ sudo port selfupdate $ sudo port upgrade outdated Graph-tool was compiled anew (which took around 30 hours(!)) Now, when I want to include graph-tool in python I get the following…
Thomasillo
  • 76
  • 3
0
votes
2 answers

How to define the 'ImporError' in the graph-tool python module?

I'm trying to use the graph-tool python module, which is really great by the way. To do so I have: downloaded version 2.2.30 (http://downloads.skewed.de/graph-tool/graph-tool-2.2.30.tar.bz2) followed the installation instructions…
Flabetvibes
  • 3,066
  • 20
  • 32
1 2 3
18
19