Offset Graph Stream Network Model
class OffsetGraphStreamNetworkModel<T, P : Position<P>>(environment: Environment<T, P>, val offset: Int, val graph: Graph) : NetworkModel<T>
A NetworkModel that statically connects the nodes of environment as they were configured by GraphStream. An offset is used to determine the id of the environment's nodes when compared to the one of the provided graph.
The neighbors are linked as soon as they are part of the environment: each neighborhood follows only the presence of the graph neighbors of its center, so that a node joining or leaving notifies only the neighborhoods it belongs to.
Properties
Functions
Link copied to clipboard
The neighborhood of center, a node of the environment of this model, as an observable of immutable snapshots that emits whenever the neighborhood changes.
Link copied to clipboard