Getting out degree for each of the nodes of a BlockState
Hi Tiago, I wanted to create a probability distribution function for the inferred network calculated by SBM (using function 'minimise_blockmodel_dl') from the original network. The object in consideration in this case is the 'BlockState' object. I couldn't find a way to do this, since there is not function to calculate the out degree of a node in the BlockState object. Can you suggest how I can achieve this? Thanks, Sukrit -- View this message in context: http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/... Sent from the Main discussion list for the graph-tool project mailing list archive at Nabble.com.
On 14.10.2016 07:59, isukritgupta wrote:
Hi Tiago, I wanted to create a probability distribution function for the inferred network calculated by SBM (using function 'minimise_blockmodel_dl') from the original network. The object in consideration in this case is the 'BlockState' object.
I couldn't find a way to do this, since there is not function to calculate the out degree of a node in the BlockState object. Can you suggest how I can achieve this?
You can access the graph corresponding to the state with: state.g With this you can look at the out-degrees. Note that this is simply the graph that you supplied to minimize_blockmodel_dl()... Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
participants (2)
-
isukritgupta -
Tiago de Paula Peixoto