Re: [graph-tool] performance reducing drastically as more edges are processed

2020-04-21 Thread ioana
I am trying to compute a weight for each relation, that I call "Exclusivity". Given that the graph has typed edges (with the type of edges stored as an int in the property map label_id), the Exclusivity of an edge is computed as 1 / (number of all edges of same type outgoing from the source node +

Re: [graph-tool] Fast way to draw moving graphs in video

2020-04-21 Thread Joseph Redfern
`graph_draw` accepts either a file name or a file object. I would investigate passing a BytesIO (https://docs.python.org/3/library/io.html#io.BytesIO) object to the `output` parameter of `graph_draw` (instead of a filename). You can then read from the BytesIO object (for instance, to a numpy ar

[graph-tool] Fast way to draw moving graphs in video

2020-04-21 Thread Lex Fridman
Hi all, I'm currently drawing a graph snapshot to an image file, then loading it back in and writing that image to a video with OpenCV. This I/O process is a big bottleneck. Does anyone know a faster way to do this? Are there ways in graph-tool to speed this up or skip the I/O alltogether? - Lex