Digital topology: a comparison of the graph-based and topological approaches