Re: [graph-tool] More Effective Way of Creating Weighted Graphs

2018-10-24 Thread Tiago de Paula Peixoto
gorithm is Bellman-Ford, which is much slower, with O(V * E). -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Limit the Total Number of Paths

2018-10-23 Thread Tiago de Paula Peixoto
ou want more meaningful help, please be more concrete, with an example, etc. -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Error while using vcmap in graph_draw

2018-10-23 Thread Tiago de Paula Peixoto
quot;, line > 484, in _attrs >     nattrs[int(attr)] = _prop(d, g, _convert(attr, v, cmap)) >   File "/usr/lib/python3/dist-packages/graph_tool/draw/cairo_draw.py", line > 323, in _convert >     cmap, alpha = cmap > ValueError: too many values to unpack (expec

Re: [graph-tool] More Effective Way of Creating Weighted Graphs

2018-10-23 Thread Tiago de Paula Peixoto
owever the edges and vertices are remain the same, > only weights change.) Is there a faster/better way to do this? You can access the weights as a numpy array via: weights.fa It can be faster to just update this array, than to re-generate the whole thing from scratch. Best, Tiago --

Re: [graph-tool] Fitting SBM with different priors

2018-10-18 Thread Tiago de Paula Peixoto
zation like this a bit hidden. To achieve what you want, you need to do: minimize_blockmodel_dl(g, mcmc_args=dict(entropy_args=dict(degree_dl_kind="uniform"))) Best, Tiago -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature _

Re: [graph-tool] Executing functions on a GraphView

2018-10-05 Thread Tiago de Paula Peixoto
. If you still think there is a problem, please post a minimal and self-contained example (the one you sent isn't, because it did not contain the graph you used). Best, Tiago -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature

Re: [graph-tool] Unable to import centrality function

2018-10-05 Thread Tiago de Paula Peixoto
gt and then use directly gt.eigenvector(). Best, Tiago -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Problem with add_edge_list(eprop=x)

2018-09-28 Thread Tiago de Paula Peixoto
s to have solved. ??? If the problems you mention are really there, then they need to be fixed. I ask of you to please produce a minimal and complete example for them. Best, Tiago -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Problem with add_edge_list(eprop=x)

2018-09-27 Thread Tiago de Paula Peixoto
ops=[eprop1] does not work, as the number of columns is unmatched. What version of graph-tool are you using? Best, Tiago -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Problem with add_edge_list(eprop=x)

2018-09-27 Thread Tiago de Paula Peixoto
e there is little we can do. Best, Tiago -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Weighted SBM | weight prediction

2018-09-26 Thread Tiago de Paula Peixoto
lity (remember you have to copy the state with state.copy(g=g_new), after modifying the graph). By normalizing this over all weight values, you have the conditional posterior distribution of the weight. (This could be done faster by using BlockState.get_edges_prob(), but t

Re: [graph-tool] problem with edge property display

2018-09-26 Thread Tiago de Paula Peixoto
nd > > > *g.list_properties()* > > > it doesn't show anything at all. Why so ?? Please read the documentation carefully. Graph.list_properties() only lists the internal property maps, not all property maps created. If you want your property map to show up, you need to d

Re: [graph-tool] (no subject)

2018-09-26 Thread Tiago de Paula Peixoto
;>>> quit() > > > > Well, googling this error did not help to solve the problem. Could you > please suggest a solution ? Sorry for the lack of response after such a long time, but I haven't been able to reproduce this problems in any of my systems Could you give me mor information about your setup (OS, compiler, cairo version, etc.)? Best, Tiago Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] installing graph-tool

2018-09-26 Thread Tiago de Paula Peixoto
ry for graph-tool. You should use 'bionic' instead. Best, Tiago -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Display SBM state layers

2018-09-26 Thread Tiago de Paula Peixoto
tates for the individual layers? The simplest option is again to use filtering: u = GraphView(g, efilt=ec.fa == l) # filter only edges from layer l lstate = state.copy(g=u) # block state w/ same partition lstate.draw() Best, Tiago --

Re: [graph-tool] has_path Equivalence

2018-09-25 Thread Tiago de Paula Peixoto
Am 25.09.18 um 00:51 schrieb Ozgun Altunkaya: > Hi, > > Thanks for the reply. I've got two more questions: > > edges = g.edge(1, 536) > for e in edges: >     print(e) > > returns None because there's no such edge. However, when I run > > gt.shortest_distance(g, 1, 536) > > it returns 2, bu

Re: [graph-tool] Color edge by target node color

2018-09-24 Thread Tiago de Paula Peixoto
erty(g, partition, "target") This will propagate the partition value of the target node to the edge, as an edge property map. You then can pass this to "edge_color" in graph_draw(). Best, Tiago -- Tiago de Paula Peixoto signature.asc Description:

Re: [graph-tool] Not display self-loops

2018-09-24 Thread Tiago de Paula Peixoto
model. > There is no option to toggle it. But you can filter them out: u = GraphView(g, efilt=label_self_loops(g).fa == 0) state = state.copy(g=u) state.draw() Best, Tiago -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-t

Re: [graph-tool] has_path Equivalence

2018-09-24 Thread Tiago de Paula Peixoto
rkX with has_path. I think > this is doable in graph-tool with StopSearch method, but I couldn't figure > out a way to implement it. Any help is appreciated. This is trivial, just do: has_path = shortest_distance(g, u, v) < g.num_vert

Re: [graph-tool] random graph

2018-09-06 Thread Tiago de Paula Peixoto
at shows whatever problem you might be encountering. Analyzing code fragments like this, decoupled from their context in the larger program, is not a good use of our time. Best, Tiago -- Tiago de Paula Peixoto signature.asc Description: OpenPGP

Re: [graph-tool] Viewing the gt.collection.data as a pandas Dataframe

2018-08-06 Thread Tiago de Paula Peixoto
ot; it as a Dataframe. You have to use the documented API to access it (which is more appropriate than using Pandas). Best, Tiago -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ graph-tool mailing list graph-tool@ske

Re: [graph-tool] find_edge_range issue in version 2.7?

2018-08-06 Thread Tiago de Paula Peixoto
here a more efficient way to do this, if I cannot make "find_edge_range" > work? Just use the newest version. Best, Tiago -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] clabel usage for partial constraints

2018-08-06 Thread Tiago de Paula Peixoto
,...] to pin down a node to group 0, for example. If you use constant values (or leave the vector empty) it will amount to a flat prior, and the placement will be unconstrained. Best, Tiago -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature __

Re: [graph-tool] Nested Block Model Confusion

2018-07-27 Thread Tiago de Paula Peixoto
ion. ;-) It is stateB.project_partition(3, 0). -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Precompiled Binary (Arch Linux)

2018-07-26 Thread Tiago de Paula Peixoto
Am 26.07.2018 um 11:59 schrieb Tiago de Paula Peixoto: > All that is needed if for a 'core' dev to adopt it, so it can be included in > the main repo. You can vote for the package in AUR (and get your friends to > do it too), and lobby the devs for inclusion. Some more info on

Re: [graph-tool] Nested Block Model Confusion

2018-07-26 Thread Tiago de Paula Peixoto
umber like 3000 gives usable results. > But How to get the vertex property label/name in subsequent blocks similar > to what I get from vprop ? # this projects level 3 onto level 0 and returns the property map b = state.project_level(3, 0) Best, Tiago

Re: [graph-tool] Precompiled Binary (Arch Linux)

2018-07-26 Thread Tiago de Paula Peixoto
so it can be included in the main repo. You can vote for the package in AUR (and get your friends to do it too), and lobby the devs for inclusion. Best, Tiago -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ g

[graph-tool] Using an edge covariate as a hyper parameter for the SBM

2018-07-20 Thread Tiago de Paula Peixoto
one layer of this multilayer network? Because the input is just a single > graph. Right, you have to collapse them in a single graph with multiple edges. The time-stamp on the edges (i.e. the "layers") should be stored as a property map that you pass as the 'ec' parameter

Re: [graph-tool] Using an edge covariate as a hyper parameter for the SBM

2018-07-19 Thread Tiago de Paula Peixoto
ld I use? It's always the same constructor, LayeredBlockState. To allow the membership to change across layers, you need to set overlap=True. -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] TypeError while using add_edge_list

2018-07-18 Thread Tiago de Paula Peixoto
can run, so we can understand what the problem may be. -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Using an edge covariate as a hyper parameter for the SBM

2018-07-18 Thread Tiago de Paula Peixoto
a graph with weighted edges? Yes, it accepts 'recs/rec_types/rec_params' just like the regular BlockState. Best, Tiago -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Using an edge covariate as a hyper parameter for the SBM

2018-07-16 Thread Tiago de Paula Peixoto
canonical formulation, this is technically more difficult. Best, Tiago -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] joblib parallel for with graph-tool filtering?

2018-07-16 Thread Tiago de Paula Peixoto
_distance(g, weights=g.edge_properties["weight"]) > g.properties['skim'] = skim_table > p(joblib.delayed(toy_func)(GraphView(g)) for i in range(10)) That is not a complete minimal example; the function 'p' is undefi

Re: [graph-tool] compiling error: pycairo headers not found

2018-07-13 Thread Tiago de Paula Peixoto
ng --prefix. In your case it should be: ./configure --prefix=/usr/local/anaconda3 Best, Tiago -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Strange Results when Filtering Vertices Iteratively

2018-07-11 Thread Tiago de Paula Peixoto
u haven't provided --- it is _always_ a bad idea to give code that can't be run. Please provide *self-contained* examples. Otherwise we have to guess what the intended behavior is, instead of looking at it ourselves. But looking briefly, it seems you are resetting the filter even for vertices that do belong to the current group, thus destroying it. Best, Tiago -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] large graph

2018-07-11 Thread Tiago de Paula Peixoto
at the edge). Thanks. I assume you are talking about visualization. No, there is not such option yet. -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Installation of the latest version of graph tool with conda

2018-07-10 Thread Tiago de Paula Peixoto
ackage... You need to contact the maintainer responsible. To get an idea of what might be causing it, you can take a look at he GDB backtrace. Best, Tiago -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/m

Re: [graph-tool] Installation of the latest version of graph tool with conda

2018-07-07 Thread Tiago de Paula Peixoto
could I update this version in the conda environment to 2.27? > > Thanks, > Zahra > > > ___ > graph-tool mailing list > graph-tool@skewed.de > https://lists.skewed.de/mailman/listinfo/graph-tool > -- Tiago de Paula Peixoto __

Re: [graph-tool] Graph thread safety

2018-07-02 Thread Tiago de Paula Peixoto
g can be costly. -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Graph thread safety

2018-07-02 Thread Tiago de Paula Peixoto
aph > into the memory and share/read it between multiple threads/processes (to > handle many requests in parallel to the same graph). Is Graph thread safe? > For me it seems that it's not, but I would like to confirm it. Non-modifying operations to Graph are thread-safe.

Re: [graph-tool] Graph tool - computer config (GPU ~ OpenMP ~ CPU)

2018-06-24 Thread Tiago de Paula Peixoto
Am 21.06.2018 um 22:19 schrieb M. Vigouroux: > As far as I Know GPU dosn't suit to openMP. I conclue CPU multi threading is > the best option but maybe I am wrong ? Graph-tool has no support for GPU off-loading, so the whole point is moot. -- Tiago de Paula Peixoto signature.asc

Re: [graph-tool] Complexity of graphview

2018-06-24 Thread Tiago de Paula Peixoto
t how GraphView works. It requires a vertex/edge mask or a filter function. In the former case it is O(1), in the latter O(N) or O(E). Best, Tiago -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ graph-tool mailing

Re: [graph-tool] from graph_tool.all import * gives ImportError

2018-06-21 Thread Tiago de Paula Peixoto
e. output of ./configure, contents of config.log, etc. -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Questions on Parallelisation

2018-06-19 Thread Tiago de Paula Peixoto
data using mcmc_equilibrate it would be potentially > less meaningful as the process is stochastic, however, information on how > many sweeps have been completed would still be useful to give a rough > estimate of whether completion will take hours, days, weeks, or months. This you can g

Re: [graph-tool] Most efficient way to access all nodes in a block

2018-06-19 Thread Tiago de Paula Peixoto
oach is simply: groups = defaultdict(list) for v in g.vertices(): groups[l0.b[v]].append(v) Best, Tiago -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Error during make

2018-06-12 Thread Tiago de Paula Peixoto
Am 05.06.2018 um 13:20 schrieb P-M: > Hi Tiago, > > There seems to have been an updated to the code on GIT. Does it address this > issue or is it about something else? This has been fixed now in git. Next time you want to keep track of a bug, it is best to open an issue. -- Ti

Re: [graph-tool] Extract largest biconnected component

2018-06-11 Thread Tiago de Paula Peixoto
largest > one. I guess that's the universal recipe? I suppose. I can't think of any other reasonable definition of "largest"... -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ grap

Re: [graph-tool] Extract largest biconnected component

2018-06-09 Thread Tiago de Paula Peixoto
0 0 1 0 1 0 1 0 0 0 0 0 0 0] > > nc > >> array([ 1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1,  1, 13], >> dtype=uint64) > >   > > How do I recover the largest component? It seems the label 16 occurs most often. Just extract the vertices with edges l

Re: [graph-tool] Extract largest biconnected component

2018-06-09 Thread Tiago de Paula Peixoto
can I use this property map to extract the **largest** bicomponent? Just look at the label that occurs most often. Best, Tiago -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ graph-tool mailing list graph-tool@skewed

Re: [graph-tool] Unable to verify the key

2018-06-09 Thread Tiago de Paula Peixoto
t; I don't know, it works for me. -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Posterior entropy approximations = 0?

2018-05-23 Thread Tiago de Paula Peixoto
MCMC gets trapped. -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Posterior entropy approximations = 0?

2018-05-23 Thread Tiago de Paula Peixoto
t; persists there.) It is difficult to blindly guess, without being given more information. Best, Tiago -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Error during make

2018-05-23 Thread Tiago de Paula Peixoto
n 3 it should work fine. Best, Tiago -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Posterior entropy approximations = 0?

2018-05-22 Thread Tiago de Paula Peixoto
BM ensemble. For real data this should almost never happen. Best, Tiago -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] joblib parallel for with graph-tool filtering?

2018-05-13 Thread Tiago de Paula Peixoto
filter for the main graph. Read about GraphViews here: https://graph-tool.skewed.de/static/doc/quickstart.html#graph-views Best, Tiago -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo

Re: [graph-tool] boost dependencies while installing gt on Ubuntu 18.04

2018-05-01 Thread Tiago de Paula Peixoto
On 29.04.2018 13:47, Snehal Shekatkar wrote: > I am trying to install graph-tool on Ubuntu 18.04. I am encountering > problems related to boost. What could be done? The package need to be rebuild. I'll do so for next release. -- Tiago de Pa

Re: [graph-tool] Using an edge covariate as a hyper parameter for the SBM

2018-04-26 Thread Tiago de Paula Peixoto
times, and choose the result with the smallest description length. You get this value via the method state.entropy(). Best, Tiago -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Using an edge covariate as a hyper parameter for the SBM

2018-04-26 Thread Tiago de Paula Peixoto
ance matrix of edges". The approach in question deals with graphs with edge covariates (a.k.a. weights). A covariance matrix usually refers to something else. > Is there also any way to get the full posterior of each node belonging to > each block

Re: [graph-tool] Testing if a component is 2-edge-connected and/or identifying bridges

2018-04-25 Thread Tiago de Paula Peixoto
h-tool.skewed.de/static/doc/topology.html#graph_tool.topology.label_biconnected_components The algorithm for 2-edge-connectivity is simple, and think can be implemented in time O(E). If you open an issue for this in the website, I'll implement it when I find the t

Re: [graph-tool] Label components after filtering

2018-04-25 Thread Tiago de Paula Peixoto
u have to do print comp.fa which will return an array of length 16, instead of 25. But note that this array will also only contain zeros. But this is correct, as the graph has only one component, which is labeled zero. -- Tiago de Paula Peixoto __

Re: [graph-tool] best way to identify groups in weighted graph

2018-04-24 Thread Tiago de Paula Peixoto
ion: https://graph-tool.skewed.de/static/doc/demos/inference/inference.html#edge-weights-and-covariates -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed

Re: [graph-tool] Choice of hierarchy level augmentation in cookbook

2018-04-24 Thread Tiago de Paula Peixoto
l might underfit (albeit probably only very slightly). It can't be too large, so it's better to be safe and give it enough room. -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ graph-tool mailing list g

Re: [graph-tool] "Segmentation fault (core dumped)" and "Aborted (core dumped)"

2018-04-24 Thread Tiago de Paula Peixoto
On 24.04.2018 14:13, P-M wrote: > Are you able to push the current git version to apt-get? No, you would have to wait until the next release. -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ graph-tool mail

Re: [graph-tool] Choice of hierarchy level augmentation in cookbook

2018-04-24 Thread Tiago de Paula Peixoto
st levels should have only one group most of the time. A value of L=10 is good enough for most purposes. Best. Tiago -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ graph-tool mailing list graph-tool@skewed

Re: [graph-tool] "Segmentation fault (core dumped)" and "Aborted (core dumped)"

2018-04-24 Thread Tiago de Paula Peixoto
On 23.04.2018 23:28, P-M wrote: > Update: as far as I can tell the Segmentation fault also arises if I am using > the lesmis data collection which hopefully makes this more reproducible for > others: This seems to run fine with the current git version. Can you verify? Best, Tiago --

Re: [graph-tool] How to compile graph-tool in ubuntu

2018-04-21 Thread Tiago de Paula Peixoto
s installed. Optionally, install the provided ubuntu packages, which should be much easier. Best, Tiago -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] AttributeError: 'graph_tool::Layers

2018-04-21 Thread Tiago de Paula Peixoto
On 28.03.2018 13:46, Zahra Sheikhbahaee wrote: > Any comment why it occurred or suggestion about how could it be fixed ? Please try with a recent git version. The next release will have this fixed. Best, Tiago -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signat

Re: [graph-tool] get_edges_prob() changes the entropy of the state object

2018-03-26 Thread Tiago de Paula Peixoto
he above example so I can keep track of this and fix it? Could you also test this with "real-exponential" instead of "real-normal" and also with the current git version? Best, Tiago -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] exporting graph to svg fails

2018-03-09 Thread Tiago de Paula Peixoto
xpatError: no element found: line 1, column 0 > > Any idea of the reason why it fails? Without a minimal and self-contained example that shows the problem is impossible to say anything. Just an error message without context is unhelpful. (E.g. from the error message I can infer that you are

Re: [graph-tool] Compiling Graphtool 2.26 on Ubuntu 16.04 32-bit fails with memory error

2018-03-04 Thread Tiago de Paula Peixoto
2^32 = 4 GB). It does not matter how much total memory you have. -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] creating and filtering multilayer-networks

2018-03-02 Thread Tiago de Paula Peixoto
er[e] = 3 # edge (5, 8) exists in layer 3 # u3 below is a graph view that isolates the vertices and edges of layer 3 u3 = GraphView(g, efilt=elayer.a == 3, vfilt=lambda v: 3 in vlayers[v]) Best, Tiago -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] error with manual compilation

2018-02-28 Thread Tiago de Paula Peixoto
in their respective websites. Any issue encountered is usually easy to solve, and the developers tend to be helpful. Best, Tiago -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] error with manual compilation

2018-02-27 Thread Tiago de Paula Peixoto
/installation-instructions#installing-in-a-specific-location-eg-in-a-home-directory Compiling graph-tool (or any other C++ library) without understanding how compiling and linking works in general is not advisable. Instead you should use macports or homebrew, if using MacOS. Best, Tiago -- T

Re: [graph-tool] Understanding the Model Function for Generative model

2018-02-27 Thread Tiago de Paula Peixoto
ge multipliers, there are many available resources, e.g. https://en.wikipedia.org/wiki/Lagrange_multiplier As for further references, the paper you cite has more than 100 of them... What other kind of further reading do you want? Best, -- Tiago de Paula Peixoto si

Re: [graph-tool] Fwd: Comiling error of graph tool

2018-02-23 Thread Tiago de Paula Peixoto
ost=yes --disable-cairo --disable-sparsehash > " is attched as out_config.txt, config.log. Your LDFLAGS and CPPFLAGS point to the same directory, which does not make sense. The first need to point to the shared object files, and the latter the inc

Re: [graph-tool] speed of all_neighbours

2018-02-11 Thread Tiago de Paula Peixoto
e. As usual, without a minimal self-contained example of what you are doing, it is impossible to give any concrete help. Best, Tiago -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo

Re: [graph-tool] graph-tool on CentOS?

2018-02-08 Thread Tiago de Paula Peixoto
provides newer versions of a number of > important binaries. This is appreciated. If you would be willing to host this somewhere (e.g. as a snipped in github), and maintain it from time to time, I would be happy to put a link to it in the installation instructions. -- Tiag

Re: [graph-tool] graph-tool on CentOS?

2018-02-08 Thread Tiago de Paula Peixoto
main bottle neck. On top of this there is the version of Boost, which I also think is too old there. In short, CentOS decides to stay 7 years behind everything else, and is difficult to maintain this kind of backward compatibility, given the recent speed with which C++ has b

Re: [graph-tool] make graph from scipy sparse matrix

2018-02-07 Thread Tiago de Paula Peixoto
s your sparse matrix, you can do: g = Graph() g.add_edge_list(array(a.nonzero()).T) Best, Tiago -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Grouping and drawing

2018-02-07 Thread Tiago de Paula Peixoto
one would like to join me > in this small project, I can share what I've tried until now. Take a look at the "groups" and "gamma" parameters in sfdp_layout(), as it seems to address what you want. -- Tiago de Paula Peixoto ___

Re: [graph-tool] Running all_shortest_path on large graph

2018-02-06 Thread Tiago de Paula Peixoto
ntu 17.10 virtual machine. > > Sorry for taking so long to reply. Indeed, you are not supposed to use the epsilon parameters in this way... If it is too large, it adds loops to the shortest path tree, creating an infinite loop in the algorithm. The only way to achieve what you want is to

Re: [graph-tool] APT Key Server Timeout

2018-01-19 Thread Tiago de Paula Peixoto
On 20.01.2018 06:53, Spencer Gardner wrote: > Is the key server currently down? I've tried to add the apt key from > computers on two different networks and in both cases I get a keyserver time > out. This has been fixed; thanks! -- Tiago de Paula Peixoto signature.asc Descri

Re: [graph-tool] Return multiple specific vertices from graph.vertex()

2018-01-17 Thread Tiago de Paula Peixoto
e simplest thing you can do is access the property map directly using its array interface: idx = numpy.array([13, 43, 22]) # vertices prop.a[idx] # corresponding property values Best, Tiago -- Tiago de Paula Peixoto si

Re: [graph-tool] Running all_shortest_path on large graph

2018-01-17 Thread Tiago de Paula Peixoto
all_preds_map)) > MemoryError As usual, without a minimal and self-contained (i.e. complete) example that shows the problem, it is not possible to say anything. An error message without any context is not very useful. -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital

Re: [graph-tool] Add vertex properties while adding edges via add_edge_list

2018-01-16 Thread Tiago de Paula Peixoto
they are encountered, and a vertex property map with the vertex values is returned. If ``string_vals == True``, the algorithm assumes that the vertex values are strings. Otherwise, they will be assumed to be numeric if ``edge_list`` is a :class:`~numpy.ndarray`, or arbitrary python

Re: [graph-tool] Running all_shortest_path on large graph

2018-01-16 Thread Tiago de Paula Peixoto
e paths! It does *not* store them all in memory. You must be doing some list conversion... -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Debian (stretch) install ModuleNotFoundError with Py3

2018-01-11 Thread Tiago de Paula Peixoto
less awkward solution than what I did to get > graph_tool up and running. Otherwise, I'd label this issue as "resolved. Just installing from a clean Debian install using the steps explained in the graph-tool website should just work. The is

Re: [graph-tool] Debian (stretch) install ModuleNotFoundError with Py3

2018-01-10 Thread Tiago de Paula Peixoto
are things in /usr/local? Do you have a custom Python install? -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Parallelization issues on all_shortest_paths

2018-01-09 Thread Tiago de Paula Peixoto
On 10.01.2018 04:05, Percy wrote: > Are there any suggestions for this phenomenon? It is always the same issue: The values returned must be picklable. If you encapsulate things in a class, its members must also be picklable. -- Tiago de Paula Peixoto signature.asc Description: Open

Re: [graph-tool] Parallelization issues on all_shortest_paths

2018-01-09 Thread Tiago de Paula Peixoto
something like > [1,2,3,4,5]. > > Is there any thing I misunderstand ? As the error says, the iterator objects returned by all_shortest_paths() cannot be pickled. The values returned by the function fed to pool.map() must be pickable. Hence you need to convert the iterator to lists or som

Re: [graph-tool] Vertices on the periphery

2018-01-09 Thread Tiago de Paula Peixoto
self what "periphery" means. -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Parallelization issues on all_shortest_paths

2018-01-08 Thread Tiago de Paula Peixoto
stores a list of Vertex objects. It should be changed to store a list of ints instead. > My OS is 16.04, python 2.7.14, graph-tool is > from Ostrokach's Anaconda. Please say what version of graph-tool you are using. -- Tiago de Paula Peixoto signature.asc Description: Open

Re: [graph-tool] graph_draw crashes with directed graph

2018-01-05 Thread Tiago de Paula Peixoto
ou have a GDB stack trace of the segfault? -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] ImportError: No module named 'scipy._lib.decorator'

2017-12-22 Thread Tiago de Paula Peixoto
he same problem when you import scipy.stats without importing graph-tool? -- Tiago de Paula Peixoto signature.asc Description: OpenPGP digital signature ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] centrality measures for multilayer networks

2017-12-20 Thread Tiago de Paula Peixoto
algorithms for monolayer networks, but represent the multilayer graph as an edge-annotated monolayer network, where each node appears multiple times for each layer it belongs, and their copies are connected by intra-layer edges. -- Tiago de Paula Peixoto signature.asc

Re: [graph-tool] Installation error: Could not link test program to Python

2017-12-17 Thread Tiago de Paula Peixoto
this is related to the following homebrew bug: https://github.com/Homebrew/homebrew-core/issues/21212 ) Best, Tiago -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

Re: [graph-tool] Multiplex and Graph construction

2017-12-17 Thread Tiago de Paula Peixoto
y that does the mapping: vertices = dict((name[v], v) for v in g.vertices()) The reason why this is not built-in is because the property map values are not in general unique. -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@

Re: [graph-tool] Multiplex and Graph construction

2017-12-15 Thread Tiago de Paula Peixoto
Setting the LONG LAT as attributes is enough to later draw the network > with the nodes in the correct coordinate position? If you mean to ask if graph_draw() automatically projects latitude and longitude to cartesian coordinates, the answer is no. Best, Tiago -- Tiago de Paula Peixo

Re: [graph-tool] Error during installation

2017-12-15 Thread Tiago de Paula Peixoto
n problem, you have to provide context, otherwise it is impossible to help. What is your OS, exact GCC and Boost versions, etc. >From what I can tell from the error message, it seems that your boost version is too old. Best, Tiago -- Tiago de Paula Peixoto __

Re: [graph-tool] Vertex text size proportional to the size of the vertex

2017-12-11 Thread Tiago de Paula Peixoto
the problem. -- Tiago de Paula Peixoto ___ graph-tool mailing list graph-tool@skewed.de https://lists.skewed.de/mailman/listinfo/graph-tool

<    1   2   3   4   5   6   7   8   9   10   >