graph: improve genericity

  * graph.scm: here. Use equal? instead of eq?.