pythonnetworkxpagerank

Can I use the HITS Link Analysis Algorithm in NetworkX Python Library on a undirected weighted graph?


I want to know if I can use the HITS link analysis algorithm in NetworkX on an undirected weighted graph. Following which I wish to sort in descending order the hub score of the nodes in the graph.


Solution

  • Did you read the docstring for the function?

    The HITS algorithm was designed for directed graphs but this
    algorithm does not check if the input graph is directed and will
    execute on undirected graphs.
    

    So yes, you can use it.