create correlated data for the given adjacency matrix representing a directed graph or an undirected graph
Useful links