Modifier and Type | Method and Description |
---|---|
static Graph |
open(org.apache.commons.configuration2.Configuration configuration)
Open a graph.
|
static Graph |
open(Map configuration)
Open a graph.
|
static Graph |
open(String configurationFile)
Open a graph.
|
public static Graph open(org.apache.commons.configuration2.Configuration configuration)
Graph
instance for its configuration options.configuration
- A configuration object that specifies the minimally required properties for a
Graph
instance. This minimum is determined by the
Graph
instance itself.Graph
instance.IllegalArgumentException
- if configuration
public static Graph open(String configurationFile)
Graph
instance for its configuration options. This file may be XML, YAML,
or a standard properties file. How the configuration is used (and which kind is required) is dependent on
the implementation.
If using XML, ensure that the appropriate version of Apache commons-collections
is available on the
classpath as it is an optional dependency of Apache commons-configuration
, the library that
GraphFactory
depends on.configurationFile
- The location of a configuration file that specifies the minimally required properties
for a Graph
instance. This minimum is determined by the Graph
instance
itself.Graph
instance.IllegalArgumentException
- if configurationFile
is nullpublic static Graph open(Map configuration)
Graph
instance for its configuration options.configuration
- A Map
based configuration that will be converted to an
Configuration
object via MapConfiguration
and passed to the appropriate
overload.Copyright © 2013–2022 Apache Software Foundation. All rights reserved.