Thanks, but I'm still a bit confused as ss[10][v] is an array of length 10,
does it mean that the whole vector represents a single state for v? And when
I try to copy other time series in ss
sss=[]
for i in range(200):
vpp=gp.new_vp("vector<double>")
for v in gp.get_vertices():
x = np.array(ts[i])[0][v]
vpp[v]=np.array([x])
sss.append(vpp)
where ts[i] is each time series in numpy.array, it reports the error.
<http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/file/t496178/%E5%B1%8F%E5%B9%95%E5%BF%AB%E7%85%A7_2019-08-29_%E4%B8%8B%E5%8D%884.png>
Many thanks,
Yingjie
--
Sent from:
http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/
_______________________________________________
graph-tool mailing list
[email protected]
https://lists.skewed.de/mailman/listinfo/graph-tool