[gephi-dev] [Dynamics] Unable to get a graph snapshot after a read lock

Sébastien Heymann sebastien.heymann at gephi.org
Fri Dec 3 17:13:28 CET 2010


Hi @dev,

The following code rises a readLock exception:

graph.readLock();
> Graph g = dynamicGraph.getSnapshotGraph(low, high);
>
...
>
graph.readUnlock();
>

This is a wrong behavior, as getSnapshotGraph() is intended to return a copy
of the working graph.

The issue is at DynamicGraphImpl.java line 246:

> Graph vgraph = model.getGraph(currentView);
>

This copy, in which nodes outside the interval are removed, should be free
of locks.


Cheers,
Seb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gephi.org/pipermail/gephi-dev/attachments/20101203/75615c49/attachment.html>


More information about the gephi-dev mailing list