Hi, This is more of an numpy issue. Try:
numpy.random.random([500,2]) numpy.random is a module which contains a functions called random and only the latter can be called (obviously). Best Soraltan Am 08.10.2015 um 13:49 schrieb Yogesh Karpate: > Hi All, > After compilation of 40 Hours on my laptop, I have just begun working with > graph-tool. > I have installed graph-tool-2.9 and my interest lies in finding minimum > spanning tree > of a graph ..so just tried following code > > import numpy as np > from graph_tool.all import * > g, pos = triangulation(np.random((500, 2)) * 4, type="delaunay") > tree = min_spanning_tree(g) > graph_draw(g, pos=pos, edge_color=tree, output="min_tree.pdf") > > It throws error > " > > g, pos = triangulation(np.random((500, 2)) * 4, type="delaunay") > TypeError: 'module' object is not callable > " > > > When I do, > g, pos = gt.triangulation(np.random((400, 2)) * 10, type="delaunay") > It shows the error > > NameError: name 'gt' is not defined > > > Is gt python alias for graph_tool? > > Thanks in advance. > > > > _______________________________________________ > graph-tool mailing list > [email protected] > http://lists.skewed.de/mailman/listinfo/graph-tool
signature.asc
Description: OpenPGP digital signature
_______________________________________________ graph-tool mailing list [email protected] http://lists.skewed.de/mailman/listinfo/graph-tool
