Add a function to convert into a graph with canonical edges in GraphOps