[gephi-dev] [Dynamics] Unable to get a graph snapshot after a read lock
mathieu.bastian at gmail.com
Fri Dec 3 18:08:59 CET 2010
Locking is done on the whole model, not on the graph so when you copy it
enters a writeLock(). Remove your readLock and it should be fine.
On Fri, Dec 3, 2010 at 8:13 AM, Sébastien Heymann <
sebastien.heymann at gephi.org> wrote:
> Hi @dev,
> The following code rises a readLock exception:
>> Graph g = dynamicGraph.getSnapshotGraph(low, high);
> 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.
> gephi-dev mailing list
> gephi-dev at lists.gephi.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gephi-dev