Yes. That's what I was thinking. I'm just not sure if the work would
produce a significant enough gain. However, I can use a large random graph
with lots of random property maps to get a baseline. I'll try it out and
report back.

On Wed, Jul 10, 2019, 10:37 PM Lietz, Haiko <[email protected]> wrote:

> Hi Michael,
>
> It seems that you're only interested in the relational structure and your
> nodes could be numbered in any way. If that is the case, you could create a
> graph object with as many nodes as your largest network and then use edge
> property maps to use a different (integer increasing) edge property for
> each network.
>
> This technically works, but I don't know how efficient it is related to
> your old way of storing information.
>
> Haiko
>
>
>
> ------------------------------
> *Von:* graph-tool [[email protected]]" im Auftrag von "Michael
> Vertolli [[email protected]]
> *Gesendet:* Mittwoch, 10. Juli 2019 14:30
> *An:* Main discussion list for the graph-tool project
> *Betreff:* Re: [graph-tool] Most Efficient Way to Save Lots of Small
> Graphs
>
> Hi Haiko,
>
> Every node/vertex is distinct, although they are often encoded as the same
> values in the data. For example, one graph might have three vertices (1, 2,
> 3) and two edges (1-2, 2-3). Another graph which is independent from the
> previous one could have four vertices (1, 2, 3, 4) and three edges (1-3,
> 1-2, 3-4).
>
> Thanks,
> M
>
> On Wed, Jul 10, 2019 at 8:25 AM Lietz, Haiko <[email protected]>
> wrote:
>
>> Hi Michael,
>>
>> Are the nodes always the same or do they overlap somehow from graph to
>> graph?
>>
>> Haiko
>>
>>
>>
>> ------------------------------
>> *Von:* graph-tool [[email protected]]" im Auftrag von
>> "Michael Vertolli [[email protected]]
>> *Gesendet:* Mittwoch, 10. Juli 2019 14:16
>> *An:* [email protected]
>> *Betreff:* [graph-tool] Most Efficient Way to Save Lots of Small Graphs
>>
>> Hi all,
>>
>> I just wanted to check what the most performance efficient way is to save
>> lots of small graphs. I have around 120k small graphs (<10 vertices) that
>> are currently being saved via pickle. However, I suspect that saving them
>> as a single large graph or as multiple separate .gt files might be more
>> performance efficient.
>>
>> Thanks in advance.
>> M
>> _______________________________________________
>> graph-tool mailing list
>> [email protected]
>> https://lists.skewed.de/mailman/listinfo/graph-tool
>>
> _______________________________________________
> graph-tool mailing list
> [email protected]
> https://lists.skewed.de/mailman/listinfo/graph-tool
>
_______________________________________________
graph-tool mailing list
[email protected]
https://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to