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 edgeCount: Int
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 if the referenced node doesn't exist

Lookup node by kind and seq - note: this may return null 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 nodeCountByLabel: Map[String, Int]
def nodes(label: String): InitNodeIterator[GNode]
def nodes(labels: String*): Iterator[GNode]

Lookup nodes for the given labels, or all nodes if no label is given (.nodes())

Lookup nodes for the given labels, or all nodes if no label is given (.nodes())

Attributes

def nodesWithProperty(label: String, propertyName: String, value: String): Iterator[GNode]

Lookup nodes with a given label and 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 label and 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

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

override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Concrete fields

val schema: Schema
val storagePathMaybe: Option[Path]