Comparing two networks' centrality indices in the same plot Creating a function to compare centrality indices of two networks