This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import networkx as nx | |
import pandas as pd | |
def score_links(links_file, domain): | |
"""Score a network on links based on their importance and centrality. | |
links_file: Path to the file having the links (needs a "Source" and | |
"Destination" columns) e.g. ScreamingFrog's outlinks file. | |
domain: Filter all links, making sure they all point to the domain you want. | |
""" |