Graph

flatgraph.Graph
See theGraph companion object
class Graph(val schema: Schema, val storagePathMaybe: Option[Path]) extends AutoCloseable

Attributes

Companion
object
Graph
Supertypes
trait AutoCloseable
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def _nodes(nodeKind: Int): InitNodeIterator[GNode]
def allEdges: Iterator[Edge]
def allNodes: Iterator[GNode]
override def close(): Unit

Attributes

Definition Classes
AutoCloseable
def isClosed: Boolean
def node(id: Long): GNode

Lookup node by id - note: this may return null or throw an exception if the referenced node doesn't exist

Lookup node by id - note: this may return null or throw an exception if the referenced node doesn't exist

Attributes

def node(kind: Int, seq: Int): GNode

Lookup node by kind and seq - note: this may return null or throw an exception if the referenced node doesn't exist

Lookup node by kind and seq - note: this may return null or throw an exception if the referenced node doesn't exist

Attributes

def node(kindAndSeq: KindAndSeq): GNode

Lookup node by kindAndSeq - note: this may return null or throw an exception if the referenced node doesn't exist

Lookup node by kindAndSeq - note: this may return null or throw an exception if the referenced node doesn't exist

Attributes

def nodeCount(label: String): Int
def nodeCount(): Int
def nodes(label: String): InitNodeIterator[GNode]
def nodes(labels: String*): Iterator[GNode]
def nodesWithProperty(propertyName: String, value: String): Iterator[GNode]

Lookup nodes with a given property value (via index). N.b. currently only supported for String properties. Context: MultiDictIndex requires the key to be a String and this is using reverse indices, i.e. the lookup is from String -> GNode.

Lookup nodes with a given property value (via index). N.b. currently only supported for String properties. Context: MultiDictIndex requires the key to be a String and this is using reverse indices, i.e. the lookup is from String -> GNode.

Attributes

Concrete fields

val schema: Schema
val storagePathMaybe: Option[Path]