Compute custom graph with all neighbor relationships