module 'graph_tool' has no attribute 'minimize_blockmodel_dl'

classic Classic list List threaded Threaded
2 messages Options
sam
Reply | Threaded
Open this post in threaded view
|

module 'graph_tool' has no attribute 'minimize_blockmodel_dl'

sam
Hi,

I have been using graph-tool in the docker shell in the jupyter notebook,
following the instructions  here
<https://git.skewed.de/count0/graph-tool/-/wikis/installation-instructions#jupyter-notebooks>
.

However, after moving to larger networks (not that large; 200,000 vertices)
it seems that the jupyter notework environment doesn't work. I'm not sure
why.

I have instead moved to running it from the terminal. However, things seem
to be a bit different there.

In particular, if I run the following:

import graph_tool as gt
g = gt.load_graph("/Users/samuelgyetvay/Dropbox/jmp/data/clean/j2j",
fmt="graphml")
state = gt.minimize_blockmodel_dl(g, state_args=dict(recs=[g.ep.weight],
rec_types=["discrete-poisson"]))

I get the error message "module 'graph_tool' has no attribute
'minimize_blockmodel_dl'".

I'm not sure what to do.

Thanks



--
Sent from: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/
_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool
Reply | Threaded
Open this post in threaded view
|

Re: module 'graph_tool' has no attribute 'minimize_blockmodel_dl'

Tiago Peixoto
Administrator
Am 22.05.20 um 09:38 schrieb sam:
> import graph_tool as gt

This should be:

  import graph_tool.all as gt

--
Tiago de Paula Peixoto <[hidden email]>


_______________________________________________
graph-tool mailing list
[hidden email]
https://lists.skewed.de/mailman/listinfo/graph-tool

signature.asc (849 bytes) Download Attachment
--
Tiago de Paula Peixoto <tiago@skewed.de>