Create a mutable map graph from a given graph. If the graph is already a mutable map graph, return it directly. Otherwise, create a new mutable map graph from the given graph.
Create a mutable map graph from a given graph. If the graph is already a mutable map graph, return it directly. Otherwise, create a new mutable map graph from the given graph.