Source code for graphbrain.__init__

from graphbrain.hyperedge import hedge
import graphbrain.memory.leveldb

[docs]def hgraph(locator_string): """Returns an instance of Hypergraph identified by the locator_string. The hypergraph will be created if it does not exist. Currently, the only type of hypergraph is based on LevelDB storage, and the location_string is the path to the LevelDB folder. """ return graphbrain.memory.leveldb.LevelDB(locator_string)