Import imports the nodes and edges from a serialized representation of another Graph into g. Names of imported nodes will be prefixed with prefix.
(def []byte, prefix string)
| 145 | // |
| 146 | // Names of imported nodes will be prefixed with prefix. |
| 147 | func (g *Graph) Import(def []byte, prefix string) error { |
| 148 | return g.ImportWithOptions(def, GraphImportOptions{Prefix: prefix}) |
| 149 | } |
| 150 | |
| 151 | // Operation returns the Operation named name in the Graph, or nil if no such |
| 152 | // operation is present. |