 | LGSPBackendCreateGraph Method (String, IGlobalVariables, String, Boolean, String, String, String, String) |
Creates a new LGSPGraph or LGSPNamedGraph or LGSPPersistentNamedGraph backend instance with the graph model provided by the graph model file and a name.
Namespace:
de.unika.ipd.grGen.lgsp
Assembly:
lgspBackend (in lgspBackend.dll) Version: GrGen.NET 8.0
Syntaxpublic LGSPGraph CreateGraph(
string modelFilename,
IGlobalVariables globalVariables,
string graphName,
bool named,
string persistenceProvider,
string connectionParameters,
string persistentGraphParameters,
params string[] parameters
)
Parameters
- modelFilename
- Type: SystemString
Filename of a graph model file. - globalVariables
- Type: de.unika.ipd.grGen.libGrIGlobalVariables
An object implementing the IGlobalVariables interface, serving as global variables. - graphName
- Type: SystemString
Name of the graph. - named
- Type: SystemBoolean
Returns a named graph if true otherwise a non-named graph. You must cast the LGSPGraph returned to the inherited LGSPNamedGraph if named=true. - persistenceProvider
- Type: SystemString
The name of the persistence provider (for the persistent named graph) - if not null, a persistent (named) graph is created. - connectionParameters
- Type: SystemString
The connection parameters to configure the persistence provider. - persistentGraphParameters
- Type: SystemString
Additional optional parameters for the persistent graph. - parameters
- Type: SystemString
Backend specific parameters.
Return Value
Type:
LGSPGraphThe new IGraph backend instance.
See Also