function converts a directed graph in to a weighted undirected cocitation or bibliographic coupling network