Hi Tiago, I am using 16.04.
Thank you Snehal On Mon, Oct 9, 2017 at 2:24 PM, Tiago de Paula Peixoto <[email protected]> wrote: > On 09.10.2017 05:29, Snehal Shekatkar wrote: > > Dear Tiago, > > > > I upgraded to the version 2.24 (commit 9642dd05, Sat Oct 7 23:40:03 2017 > > +0100) and tried calculating gt.assortativity and > gt.scalar_assortativity by > > making a property map's values same for all nodes. > > > > In [1]: import graph_tool.all as gt > > > > In [2]: gt.__version__ > > Out[2]: '2.24 (commit 9642dd05, Sat Oct 7 23:40:03 2017 +0100)' > > > > In [3]: g = gt.collection.data['karate'] > > > > In [4]: s = g.new_vertex_property('float') > > > > In [5]: for v in g.vertices(): > > ...: s[v] = 0.9999 > > > > In [6]: gt.scalar_assortativity(g, deg = s) > > Out[6]: (1.0, 8.889098493616578) > > > > In [7]: gt.assortativity(g, deg = s) > > Out[7]: (nan, nan) > > > > Shouldn't gt.scalar_assortativity also return (nan, nan) here? > > It should, and this is what I get. > > What Ubuntu release are you using? > > Best, > Tiago > > -- > Tiago de Paula Peixoto <[email protected]> > > > _______________________________________________ > graph-tool mailing list > [email protected] > https://lists.skewed.de/mailman/listinfo/graph-tool > > -- Snehal M. Shekatkar Pune India
_______________________________________________ graph-tool mailing list [email protected] https://lists.skewed.de/mailman/listinfo/graph-tool
