telepath / com.github.giedomak.telepath.datamodels.graph / Node

Node

data class Node : Serializable (source)

Data class for our node model.

See https://github.com/maxsumrall/PathDB/blob/master/src/main/java/com/pathdb/pathIndex/Node.java for the implementation in PathDB.

Constructors

<init>

Node(label: String)Node(id: Long)

Data class for our node model.

Properties

id

val id: Long

The identifier which maps to our label.

label

val label: String

The label attached to this node.

Functions

toString

fun toString(): String

Companion Object Functions

clear

fun clear(): Unit

numberOfNodes

fun numberOfNodes(): Int