El 07/11/13 13:14, Tiago Peixoto [via Main discussion list for the 
graph-tool project] escribió:
> On 11/07/2013 08:01 AM, xenil wrote:
> > Two questions:
> > - The usual katz calculation definition uses the transpose adjacency 
> matrix, Is this transposition done in your code?
>
> There are different conventions for the adjacency matrix of directed
> graphs. The code in the library follows the in-neighbours of the
> edge. So the matrix multiplication is performed:
>
>         y_i = alpha \sum_j A_ij x_j + beta_i
>
> where A_ij is one if there is an edge in the direction j->i. If you want
> to transpose the matrix, it is easy: You just reverse the direction of
> the graph with g.set_reversed(True).
>
Ok

> > - Is the adjacency matrix normalized when no edge weight is used?
>
> No.
>
I think that for unweighted katz centrality calculation, using the 
adjoint matrix, the normalization could be necesary to guarantee 
convergence.

There is another normalization on the _init.py file before the C++ BGL 
function call, line 738.

David.
> Cheers,
> Tiago
>
> -- 
> Tiago de Paula Peixoto <[hidden email] 
> </user/SendEmail.jtp?type=node&node=4025187&i=0>>
>
>
> _______________________________________________
> graph-tool mailing list
> [hidden email] </user/SendEmail.jtp?type=node&node=4025187&i=1>
> http://lists.skewed.de/mailman/listinfo/graph-tool
>
> *signature.asc* (919 bytes) Download Attachment 
> <http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/attachment/4025187/0/signature.asc>
> -- 
> Tiago de Paula Peixoto <[email protected]>
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the 
> discussion below:
> http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/Katz-centrality-calculation-tp4025165p4025187.html
>  
>
> To unsubscribe from Katz centrality calculation, click here 
> <http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4025165&code=eGVuaWxAeWFob28uZXN8NDAyNTE2NXw4MTAyNTkzMDA=>.
> NAML 
> <http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>  
>





--
View this message in context: 
http://main-discussion-list-for-the-graph-tool-project.982480.n3.nabble.com/Katz-centrality-calculation-tp4025165p4025191.html
Sent from the Main discussion list for the graph-tool project mailing list 
archive at Nabble.com.
_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to