 | PorterImport(IBackend, ListString, IActions) Method |
Imports a graph from the given files.
If the filenames only specify a model, the graph is empty.
The format is determined by the file extensions.
Currently available are: .grs/.grsi or .gxl or .ecore with .xmi.
Optionally suffixed by .gz; in this case they are expected to be gzipped.
Any error will be reported by exception.
Namespace: de.unika.ipd.grGen.libGrAssembly: libGr (in libGr.dll) Version: GrGen.NET 7.1
Syntaxpublic static IGraph Import(
IBackend backend,
List<string> filenameParameters,
out IActions actions
)
Parameters
- backend IBackend
- The backend to use to create the graph.
- filenameParameters ListString
- The names of the files to be imported.
- actions IActions
- Receives the actions object in case a .grg model is given.
Return Value
IGraphThe imported graph.
The .grs/.grsi importer returns an INamedGraph. If you don't need it: create an LGSPGraph from it and throw the named graph away.
(the naming requires about the same amount of memory the raw graph behind it requires).
See Also