for GraphLink ,fromNode should be different with  toNode