create undirected graph using PCC